debug ld-wasi-sdk #50
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: rust-host | |
| on: [push, pull_request] | |
| jobs: | |
| build-and-test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Set variables based on OS and architecture for just dl-wasi-sdk | |
| run: | | |
| if [ "${{ runner.arch }}" = "X64" ]; then | |
| echo "WASI_ARCH=x86_64" >> $GITHUB_ENV | |
| else | |
| echo "WASI_ARCH=arm64" >> $GITHUB_ENV | |
| fi | |
| if [ "${{ runner.os }}" = "Windows" ]; then | |
| echo "WASI_OS=windows" >> $GITHUB_ENV | |
| else | |
| echo "WASI_OS=linux" >> $GITHUB_ENV | |
| fi | |
| echo "WASI_VERSION_FULL=25.0" >> $GITHUB_ENV | |
| echo "WASI_VERSION=25" >> $GITHUB_ENV | |
| - uses: actions/checkout@v4 | |
| - uses: actions-rs/toolchain@v1 | |
| with: | |
| toolchain: stable | |
| target: wasm32-unknown-unknown | |
| override: true | |
| - uses: cargo-bins/cargo-binstall@main | |
| - uses: extractions/setup-just@v3 | |
| - name: Install cargo-component | |
| run: cargo binstall cargo-component@0.21.1 | |
| - name: Install wasi-sdk | |
| run: | | |
| mkdir c_deps | |
| just dl-wasi-sdk | |
| - name: Build | |
| run: just build | |
| - name: Test | |
| run: just test | |
| - name: Test with wasm from http server (if it fails, you need to publish a new version of pluginlab) | |
| run: just test-e2e-pluginlab-http |