Skip to content

Commit

Permalink
Improve GitHub Actions CI a bit (#1078)
Browse files Browse the repository at this point in the history
* use x86_64-unknown-none instead of thumbv7em-none-eabi

* improve caching directories

* add missing rustup target
  • Loading branch information
Robbepop authored Jun 20, 2024
1 parent 7783198 commit ae84917
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown, thumbv7em-none-eabi
targets: wasm32-unknown-unknown, x86_64-unknown-none
- name: Set up Cargo cache
uses: actions/cache@v4
continue-on-error: false
Expand All @@ -39,7 +39,7 @@ jobs:
- name: Build (no_std + no-hash-maps)
run: cargo build -p wasmi_collections --no-default-features --features no-hash-maps
- name: Build (no_std)
run: cargo build --workspace --lib --no-default-features --target thumbv7em-none-eabi --exclude wasmi_cli --exclude wasmi_wasi --exclude wasmi_fuzz
run: cargo build --workspace --lib --no-default-features --target x86_64-unknown-none --exclude wasmi_cli --exclude wasmi_wasi --exclude wasmi_fuzz
- name: Build (wasm32)
run: cargo build --workspace --lib --no-default-features --target wasm32-unknown-unknown --exclude wasmi_cli --exclude wasmi_wasi --exclude wasmi_fuzz

Expand Down Expand Up @@ -233,7 +233,8 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
~/target/
~/fuzz/target/
~/target/release/
~/target/debug/
~/fuzz/corpus/execute/
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-
Expand Down Expand Up @@ -263,7 +264,8 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
~/target/
~/fuzz/target/
~/target/release/
~/target/debug/
~/fuzz/corpus/execute/
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-
Expand Down Expand Up @@ -297,6 +299,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
~/target/
~/target/miri/
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-
- name: Checkout Submodules
Expand Down Expand Up @@ -331,6 +334,7 @@ jobs:
~/.cargo/registry/cache/
~/.cargo/git/db/
~/target/
~/target/miri/
key: ${{ runner.os }}-${{ github.job }}-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-${{ github.job }}-
- name: Checkout Submodules
Expand Down

0 comments on commit ae84917

Please sign in to comment.