This repository has been archived by the owner on Jun 29, 2024. It is now read-only.
Dev #234
This file contains 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 Tests | |
on: | |
push: | |
branches: [staging,trying,dev,main] | |
# Remove the line above to run when pushing to master | |
pull_request: | |
branches: [ main, dev ] | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
ci: | |
name: "build-ci" | |
needs: ["build", "build-ubuntu"] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Done | |
run: exit 0 | |
build: | |
name: "build" | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
args: [-v] #--release -v, | |
toolchain: ["beta","stable"] | |
features: ['"alloc"','"alloc std"','"alloc x86tox64"','"alloc x86tox64 std"'] | |
target: [i686-pc-windows-msvc,x86_64-pc-windows-msvc] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: moonrepo/setup-rust@v1 | |
with: | |
profile: minimal | |
channel: ${{ matrix.toolchain }} | |
targets: ${{ matrix.target }} | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: ${{ matrix.args }} --no-default-features --features ${{ matrix.features }} --target ${{ matrix.target }} --package inject-lib | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: ${{ matrix.args }} --no-default-features --features ${{ matrix.features }} --target ${{ matrix.target }} --package inject-lib | |
build-ubuntu: | |
name: "build-ubuntu" | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
args: [-v] #--release -v, | |
toolchain: [stable] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: build | |
args: ${{ matrix.args }} --no-default-features --features "ntdll alloc" --package inject-lib | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
args: ${{ matrix.args }} --no-default-features --features "ntdll alloc" --package inject-lib |