Repository navigation
Wake the host when V8 queues a task only a checkpoint runs #47
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: napi-native-concurrency | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/napi-native-concurrency.yml" | |
| - "Cargo.standalone.lock" | |
| - "Cargo.standalone.toml" | |
| - "build.rs" | |
| - "cargo-standalone.sh" | |
| - "include/**" | |
| - "lib/**" | |
| - "rust-toolchain.toml" | |
| - "src/**" | |
| - "tests/foreground_task_waker.rs" | |
| - "tests/concurrent_*.rs" | |
| - "tests/wat_guest/**" | |
| - "v8/**" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/napi-native-concurrency.yml" | |
| - "Cargo.standalone.lock" | |
| - "Cargo.standalone.toml" | |
| - "build.rs" | |
| - "cargo-standalone.sh" | |
| - "include/**" | |
| - "lib/**" | |
| - "rust-toolchain.toml" | |
| - "src/**" | |
| - "tests/foreground_task_waker.rs" | |
| - "tests/concurrent_*.rs" | |
| - "tests/wat_guest/**" | |
| - "v8/**" | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| rust-native-concurrency: | |
| name: Rust native concurrency | |
| runs-on: ubuntu-24.04 | |
| timeout-minutes: 45 | |
| env: | |
| CC: clang | |
| CXX: clang++ | |
| CARGO_TARGET_DIR: ${{ github.workspace }}/target | |
| CARGO_INCREMENTAL: "0" | |
| CARGO_PROFILE_TEST_DEBUG: "0" | |
| NAPI_WASMER_FORCE_STANDALONE: "1" | |
| RUST_BACKTRACE: "1" | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@master | |
| with: | |
| toolchain: "1.96" | |
| - name: Install native build dependencies | |
| run: | | |
| sudo apt-get update | |
| sudo apt-get install --yes clang pkg-config libssl-dev | |
| - name: Cache Rust dependencies and the V8 archive | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| ~/.cargo/registry | |
| ~/.cargo/git | |
| target | |
| key: ${{ runner.os }}-napi-concurrency-rust-1.96-${{ hashFiles('Cargo.standalone.toml', 'Cargo.standalone.lock', 'build.rs', 'rust-toolchain.toml') }} | |
| restore-keys: | | |
| ${{ runner.os }}-napi-concurrency-rust-1.96- | |
| # WAT guests, each in its own Wasmer store and thread, against the real | |
| # C++ bridge and V8. No WASIX C toolchain is needed. | |
| - name: Test concurrent environments and stores, and the foreground task waker | |
| run: >- | |
| ./cargo-standalone.sh test --locked | |
| --test foreground_task_waker | |
| --test concurrent_envs --test concurrent_stores |