Remove llvm patch #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- "**" | |
paths-ignore: | |
- README.md | |
jobs: | |
build: | |
strategy: | |
matrix: | |
include: | |
- runner: [runs-on, runner=32cpu-linux-x64, "run-id=${{ github.run_id }}"] | |
os: ubuntu | |
- runner: [runs-on, runner=32cpu-linux-arm64, "run-id=${{ github.run_id }}"] | |
os: ubuntu | |
- runner: self-hosted | |
os: macos | |
- runner: macos-13 | |
os: macos | |
runs-on: ${{ matrix.runner }} | |
timeout-minutes: 120 | |
steps: | |
- name: Install nightly toolchain | |
id: rustc-toolchain | |
uses: actions-rust-lang/setup-rust-toolchain@v1 | |
with: | |
toolchain: nightly-2024-05-29 | |
- uses: lukka/[email protected] | |
- name: Show rust version | |
run: | | |
cargo version | |
rustup toolchain list | |
- name: Check out athenavm/rustc-rv32e-toolchain | |
uses: actions/checkout@v4 | |
with: | |
submodules: recursive | |
path: toolchain | |
- name: Check out athenavm/athena | |
uses: actions/checkout@v4 | |
with: | |
repository: athenavm/athena | |
ref: main | |
path: athena | |
- name: Source config.sh and export RUST_COMMIT | |
run: | | |
source toolchain/config.sh | |
echo "Using Rust commit: $RUST_COMMIT" | |
echo "RUST_COMMIT=$RUST_COMMIT" >> $GITHUB_ENV | |
- uses: actions/cache@v4 | |
name: Cache Athena build | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
athena/target/ | |
key: ${{ matrix.os }}-athenabuild-${{ hashFiles('athena/**/Cargo.lock') }} | |
- uses: actions/cache@v4 | |
name: Cache Rust toolchain | |
with: | |
path: | | |
toolchain/rust/ | |
key: ${{ matrix.os }}-rusttoolchain-${{ env.RUST_COMMIT }} | |
- name: Build | |
run: | |
GITHUB_ACTIONS=false ATHENA_BUILD_DIR=$GITHUB_WORKSPACE/toolchain cargo run --bin cargo-athena -- athena | |
build-toolchain | |
working-directory: athena |