Skip to content
This repository was archived by the owner on Mar 6, 2023. It is now read-only.

Commit 1ad9972

Browse files
committed
Fix Release upload and silence git clone
1 parent 77e10a1 commit 1ad9972

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.circleci/config.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
version: 2
22
jobs:
3+
34
build:
45
docker:
56
- image: modm/riscv-gcc-prerequisites:latest
67
steps:
78
- run:
89
name: Git Clone
910
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
1112
- run:
1213
name: Configure
1314
command: |
@@ -18,13 +19,17 @@ jobs:
1819
command: |
1920
cd riscv-gnu-toolchain
2021
make -j4
21-
no_output_timeout: 3600
2222
- run:
2323
name: Compiling test files
2424
command: |
2525
/opt/riscv-gcc/bin/riscv64-unknown-elf-g++ --version
2626
echo "int main() { return 0;}" > main1.cpp
2727
/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++
2833
- run:
2934
name: Create Tarball
3035
command: |
@@ -36,8 +41,8 @@ jobs:
3641
- persist_to_workspace:
3742
root: workspace
3843
paths:
39-
- test
4044
- riscv-gcc.tar.bz2
45+
4146
deploy:
4247
docker:
4348
- image: circleci/golang:latest
@@ -49,7 +54,7 @@ jobs:
4954
command: go get github.com/tcnksm/ghr
5055
- run:
5156
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
5358

5459
workflows:
5560
version: 2

0 commit comments

Comments
 (0)