From a1a05b1ccebaea43fe487701f1948f49c39c4b3a Mon Sep 17 00:00:00 2001 From: xieyuschen Date: Fri, 8 Dec 2023 11:22:49 +0800 Subject: [PATCH] feature: check wasm build in ci --- .github/workflows/wasm.yml | 44 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/wasm.yml diff --git a/.github/workflows/wasm.yml b/.github/workflows/wasm.yml new file mode 100644 index 000000000..aca2a6888 --- /dev/null +++ b/.github/workflows/wasm.yml @@ -0,0 +1,44 @@ +name: wasm-check +on: + pull_request: + paths: + - '**.rs' + - '**/Cargo.*' + - '.github/workflows/wasm.yml' + - '**.pi' + - '**/Kagari.*' + - 'codecov.yml' + push: + branches: + - "master" + - "release/*" + - "staging" + - "trying" + paths: + - '**.rs' + - '**/Cargo.*' + - '.github/workflows/wasm.yml' + - '**.pi' + - '**/Kagari.*' + - 'codecov.yml' + + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + wasm-test: + name: Wasm Build Check + runs-on: ubuntu-latest + env: + CARGO_TERM_COLOR: always + RUST_BACKTRACE: 1 + + steps: + - uses: jetli/wasm-pack-action@v0.4.0 + - uses: actions/checkout@v4 + with: + submodules: true + - name: test wasm + run: wasm-pack build --target bundler --no-default-features --scope pivot-lang \ No newline at end of file