Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
al8n committed Dec 28, 2024
1 parent 7339d65 commit ad2582c
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,9 @@ jobs:
- riscv64gc-unknown-linux-gnu
- wasm32-unknown-unknown
- wasm32-unknown-emscripten
- wasm32-wasi
- wasm32-wasip1
- wasm32-wasip1-threads
- wasm32-wasip2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -102,22 +104,10 @@ jobs:
${{ runner.os }}-cross-
- name: Install Rust
run: rustup update stable && rustup default stable
- name: cross build --target ${{ matrix.target }}
run: |
cargo install cross
cross build --target ${{ matrix.target }}
if: matrix.target != 'wasm32-unknown-unknown' && matrix.target != 'wasm32-wasi'
# WASM support
- name: cargo build --target ${{ matrix.target }}
run: |
rustup target add ${{ matrix.target }}
cargo build --target ${{ matrix.target }}
if: matrix.target == 'wasm32-unknown-unknown' || matrix.target == 'wasm32-wasi'
# - name: cargo build --target ${{ matrix.target }}
# run: |
# rustup target add ${{ matrix.target }}
# cargo +nightly build --no-default-features --features alloc --target ${{ matrix.target }} -Z build-std=core,alloc
# if: matrix.target == 'mips64-unknown-linux-gnuabi64'
cargo build --target ${{ matrix.target }}
build:
name: build
Expand Down

0 comments on commit ad2582c

Please sign in to comment.