Skip to content

Commit fd898c9

Browse files
committed
Update CI workflow
1 parent 4bb14bc commit fd898c9

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/ci.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,22 @@ jobs:
1313
strategy:
1414
fail-fast: false
1515
matrix:
16-
runner:
17-
- [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
18-
- [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
19-
- self-hosted
20-
- macos-13
16+
include:
17+
- runner: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
18+
os: ubuntu
19+
- runner: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
20+
os: ubuntu
21+
- runner: self-hosted
22+
os: macos
23+
- runner: macos-13
24+
os: macos
2125
runs-on: ${{ matrix.runner }}
2226
steps:
2327
- name: Install nightly toolchain
2428
id: rustc-toolchain
2529
uses: actions-rs/toolchain@v1
2630
with:
27-
toolchain: nightly-2024-01-25
31+
toolchain: nightly-2024-05-29
2832
default: true
2933

3034
- uses: lukka/get-cmake@v3.27.4
@@ -35,7 +39,7 @@ jobs:
3539
rustup toolchain list
3640
3741
- name: Check out athenavm/rustc-rv32e-toolchain
38-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
3943
with:
4044
submodules: recursive
4145
path: toolchain
@@ -47,6 +51,19 @@ jobs:
4751
ref: main
4852
path: athena
4953

54+
- name: Install ninja and riscv-tools
55+
if: matrix.os == 'ubuntu'
56+
run: |
57+
sudo apt update
58+
sudo apt-get -y install ninja-build gcc-riscv64-unknown-elf
59+
60+
- name: Install ninja and riscv-tools
61+
if: matrix.os == 'macos'
62+
run: |
63+
brew install ninja
64+
brew tap riscv-software-src/riscv
65+
brew install riscv-tools
66+
5067
- name: Build
5168
run:
5269
GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena

0 commit comments

Comments
 (0)