Skip to content

Commit

Permalink
feat: add wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
fedosov committed Sep 12, 2022
1 parent aea2996 commit 78f08f1
Showing 1 changed file with 8 additions and 17 deletions.
25 changes: 8 additions & 17 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,14 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- uses: actions-rs/toolchain@v1
with:
toolchain: nightly
target: ${{ matrix.target }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- name: Update local toolchain
run: |
curl https://sh.rustup.rs -sSf | sh -s -- -y --default-toolchain nightly
rustup update nightly
rustup target add wasm32-unknown-unknown --toolchain nightly
rustup target add ${{ matrix.target }} --toolchain nightly
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Package
shell: bash
run: |
Expand Down

0 comments on commit 78f08f1

Please sign in to comment.