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 1, 2024
1 parent 6031254 commit 7c01463
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:
name: Test wasm (Browser/no-bundler)
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
build-wasm:
name: Build and upload `tlsn-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/[email protected]

- 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 7c01463

Please sign in to comment.