Skip to content

Commit

Permalink
deduplicate wasm target
Browse files Browse the repository at this point in the history
  • Loading branch information
aqrln committed Feb 9, 2024
1 parent d0029a6 commit ab73a49
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/build-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,5 @@ jobs:
- uses: actions/checkout@v4

- uses: ./.github/workflows/include/rust-wasm-setup
- run: rustup target add wasm32-unknown-unknown

- run: make check-schema-wasm-package PROFILE=release
4 changes: 4 additions & 0 deletions .github/workflows/include/rust-wasm-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ runs:
shell: bash
run: rustup default stable

- name: Add WASM target
shell: bash
run: rustup target add wasm32-unknown-unknown

- uses: cargo-bins/cargo-binstall@main

- name: Install wasm-bindgen, wasm-opt
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/publish-prisma-schema-wasm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
ref: ${{ github.event.inputs.enginesHash }}

- uses: ./.github/workflows/include/rust-wasm-setup
- run: rustup target add wasm32-unknown-unknown

- name: Build
run: make build-schema-wasm PROFILE=release SCHEMA_WASM_VERSION=${{ github.event.inputs.enginesWrapperVersion }}
Expand Down

0 comments on commit ab73a49

Please sign in to comment.