This repository was archived by the owner on Mar 6, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
2
jobs :
3
+
3
4
build :
4
5
docker :
5
6
- image : modm/riscv-gcc-prerequisites:latest
6
7
steps :
7
8
- run :
8
9
name : Git Clone
9
10
command : |
10
- git clone --recursive --jobs 16 https://github.com/riscv/riscv-gnu-toolchain
11
+ git clone --recursive --jobs 16 --quiet https://github.com/riscv/riscv-gnu-toolchain
11
12
- run :
12
13
name : Configure
13
14
command : |
@@ -18,13 +19,17 @@ jobs:
18
19
command : |
19
20
cd riscv-gnu-toolchain
20
21
make -j4
21
- no_output_timeout : 3600
22
22
- run :
23
23
name : Compiling test files
24
24
command : |
25
25
/opt/riscv-gcc/bin/riscv64-unknown-elf-g++ --version
26
26
echo "int main() { return 0;}" > main1.cpp
27
27
/opt/riscv-gcc/bin/riscv64-unknown-elf-g++ main1.cpp
28
+ # - run:
29
+ # name: Fake toolchain
30
+ # command: |
31
+ # mkdir -p /opt/riscv-gcc/bin
32
+ # cp $(which true) /opt/riscv-gcc/bin/riscv64-unknown-elf-g++
28
33
- run :
29
34
name : Create Tarball
30
35
command : |
36
41
- persist_to_workspace :
37
42
root : workspace
38
43
paths :
39
- - test
40
44
- riscv-gcc.tar.bz2
45
+
41
46
deploy :
42
47
docker :
43
48
- image : circleci/golang:latest
49
54
command : go get github.com/tcnksm/ghr
50
55
- run :
51
56
name : Deploy
52
- command : ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` workspace/riscv-gcc.tar.bz2
57
+ command : ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME $CIRCLE_TAG workspace/riscv-gcc.tar.bz2
53
58
54
59
workflows :
55
60
version : 2
You can’t perform that action at this time.
0 commit comments