NEW Port mid-run temp-file GC (gcTemps/removeIfTemporary/__remove) #24
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: Build Rust | |
| on: | |
| push: | |
| branches: [rust-migration] | |
| pull_request: | |
| branches: [rust-migration] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| with: | |
| components: rustfmt | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Format check | |
| run: cargo fmt --all -- --check | |
| - name: Build | |
| run: cargo build --workspace --all-targets --release | |
| - name: Unit tests | |
| run: cargo test --workspace | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| path: target/release/ngless | |
| # External tools (samtools/bwa/minimap2/prodigal/megahit) are provided by the | |
| # pinned pixi environment | |
| functional-tests: | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: prefix-dev/setup-pixi@v0.10.0 | |
| with: | |
| cache: true | |
| environments: default | |
| - name: Build Rust ngless | |
| run: cargo build --release | |
| - name: Run functional tests against the Rust binary | |
| run: pixi run --environment default bash -c 'NGLESS_BIN="$PWD/target/release/ngless" ./run-tests.sh' |