Skip to content

Commit

Permalink
github actions: move wasm steps to a separate job
Browse files Browse the repository at this point in the history
Improve parallelization and reporting by running the mostly-unrelated
wasm target steps in a separate job.

This removes feedback on these targets outside the stable toolchain.
  • Loading branch information
rillian committed Oct 2, 2023
1 parent 2f50482 commit 064fbb0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
push:
branches:
- main
pull-request:
pull_request:
branches:
- main
schedule:
Expand Down
11 changes: 0 additions & 11 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,3 @@ jobs:
with:
command: test
args: --release

- name: WASM pkg
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd ./star-wasm
make build
- name: WASM www
run: |
cd ./star-wasm/www
make
33 changes: 33 additions & 0 deletions .github/workflows/wasm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
on:
push:
branches:
- main
pull_request:

name: Tests

jobs:
wasm:
runs-on: ubuntu-latest

env:
RUSTFLAGS: ''
CARGO_PROFILE_DEV_DEBUG: '0' # reduce size of target directory

steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0

- name: Cache
uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 # v2.7.0

- name: WASM pkg
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
cd ./star-wasm
make build
- name: WASM www
run: |
cd ./star-wasm/www
make

0 comments on commit 064fbb0

Please sign in to comment.