Skip to content

Commit

Permalink
ci: add job for building and uploading tlsn-wasm build result
Browse files Browse the repository at this point in the history
  • Loading branch information
heeckhau committed Aug 2, 2024
1 parent 7f46596 commit a5acc42
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:

- name: Test
run: cargo test
build-wasm:
name: Build and test wasm
test-wasm: # Browser/no-bundler
name: Test wasm
runs-on: ubuntu-latest
steps:
- name: Checkout repository
Expand Down Expand Up @@ -93,6 +93,42 @@ jobs:
run: |
cd crates/wasm-test-runner
RUST_LOG=debug ./run.sh
tlsn-wasm:
name: Build wasm
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install stable rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
toolchain: stable

- name: Install nightly rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown,x86_64-unknown-linux-gnu
toolchain: nightly
components: rust-src

- name: Install wasm-pack
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Use caching
uses: Swatinem/rust-cache@v2.7.3

- name: Run build
run: |
cd crates/wasm
RUST_LOG=debug ./build.sh
- name: Save artifacts
uses: actions/upload-artifact@v4
with:
name: tlsn-wasm-pkg
path: ./crates/wasm/pkg
if-no-files-found: error
tests-integration:
name: Run tests release build
runs-on: ubuntu-latest
Expand Down

0 comments on commit a5acc42

Please sign in to comment.