diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dc470a37..1a4ee7bf 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -4,7 +4,7 @@ on: push: branches: - main - pull-request: + pull_request: branches: - main schedule: diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3c83ee46..036c74c9 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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 diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 00000000..07a92ab0 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -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