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

Commit

Permalink
Fix Release upload and silence git clone
Browse files Browse the repository at this point in the history
  • Loading branch information
rleh committed Sep 22, 2020
1 parent 77e10a1 commit 1ad9972
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
version: 2
jobs:

build:
docker:
- image: modm/riscv-gcc-prerequisites:latest
steps:
- run:
name: Git Clone
command: |
git clone --recursive --jobs 16 https://github.com/riscv/riscv-gnu-toolchain
git clone --recursive --jobs 16 --quiet https://github.com/riscv/riscv-gnu-toolchain
- run:
name: Configure
command: |
Expand All @@ -18,13 +19,17 @@ jobs:
command: |
cd riscv-gnu-toolchain
make -j4
no_output_timeout: 3600
- run:
name: Compiling test files
command: |
/opt/riscv-gcc/bin/riscv64-unknown-elf-g++ --version
echo "int main() { return 0;}" > main1.cpp
/opt/riscv-gcc/bin/riscv64-unknown-elf-g++ main1.cpp
#- run:
# name: Fake toolchain
# command: |
# mkdir -p /opt/riscv-gcc/bin
# cp $(which true) /opt/riscv-gcc/bin/riscv64-unknown-elf-g++
- run:
name: Create Tarball
command: |
Expand All @@ -36,8 +41,8 @@ jobs:
- persist_to_workspace:
root: workspace
paths:
- test
- riscv-gcc.tar.bz2

deploy:
docker:
- image: circleci/golang:latest
Expand All @@ -49,7 +54,7 @@ jobs:
command: go get github.com/tcnksm/ghr
- run:
name: Deploy
command: ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME --replace `git describe --tags` workspace/riscv-gcc.tar.bz2
command: ghr -t $GITHUB_TOKEN -u $CIRCLE_PROJECT_USERNAME -r $CIRCLE_PROJECT_REPONAME $CIRCLE_TAG workspace/riscv-gcc.tar.bz2

workflows:
version: 2
Expand Down

0 comments on commit 1ad9972

Please sign in to comment.