Skip to content

Commit

Permalink
chore: use submodule linux binary instead of download
Browse files Browse the repository at this point in the history
Signed-off-by: Han Gao <[email protected]>
  • Loading branch information
RevySR committed Feb 25, 2024
1 parent 5a33c33 commit 34b4fad
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@ on:
- rv64ilp32
- 'rv64ilp32*'

env:
qemu_linux_binary: https://github.com/guoren83/rv64ilp32_linux_test/raw/main/qemu-linux.tar.gz

jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -36,6 +33,11 @@ jobs:
- uses: actions/checkout@v4

- name: sync rv64ilp32_linux binary
run: |
git submodule init rv64ilp32_linux
git submodule update rv64ilp32_linux
- name: install dependencies
run: sudo ./.github/setup-apt.sh

Expand Down Expand Up @@ -77,8 +79,7 @@ jobs:
- name: download qemu-linux binary
run: |
wget -O qemu-linux.tar.gz $qemu_linux_binary
sudo tar xzvf qemu-linux.tar.gz -C /opt/riscv/
sudo tar xzvf rv64ilp32_linux/qemu-linux.tar.gz -C /opt/riscv/
- name: recover space
run: |
Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/nightly-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,6 @@ name: Nightly Release
on:
workflow_dispatch:

env:
qemu_linux_binary: https://github.com/guoren83/rv64ilp32_linux_test/raw/main/qemu-linux.tar.gz

jobs:
activity-check:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -65,6 +62,11 @@ jobs:
- uses: actions/checkout@v4

- name: sync rv64ilp32_linux binary
run: |
git submodule init rv64ilp32_linux
git submodule update rv64ilp32_linux
- name: install apt dependencies
run: sudo ./.github/setup-apt.sh

Expand Down Expand Up @@ -98,8 +100,7 @@ jobs:
- name: download qemu-linux binary
run: |
wget -O qemu-linux.tar.gz $qemu_linux_binary
sudo tar xzvf qemu-linux.tar.gz -C /opt/riscv/
sudo tar xzvf rv64ilp32_linux/qemu-linux.tar.gz -C /opt/riscv/
- name: recover space
run: |
Expand Down

0 comments on commit 34b4fad

Please sign in to comment.