forked from paritytech/rustc-rv32e-toolchain
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.2 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: CI
on:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
runner:
- [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"]
- [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"]
- self-hosted
- macos-13
runs-on: ${{ matrix.runner }}
steps:
- name: Install nightly toolchain
id: rustc-toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: nightly-2024-01-25
default: true
- uses: lukka/get-cmake@v3.27.4
- name: Show rust version
run: |
cargo version
rustup toolchain list
- name: Check out athenavm/rustc-rv32e-toolchain
uses: actions/checkout@v3
with:
submodules: recursive
path: toolchain
- name: Check out athenavm/athena
uses: actions/checkout@v3
with:
repository: athenavm/athena
ref: main
path: athena
- name: Build
run:
GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena
build-toolchain
working-directory: athena