Skip to content

Update coverage.yml, doc.yml, and test.yml to latest actions. #361

Update coverage.yml, doc.yml, and test.yml to latest actions.

Update coverage.yml, doc.yml, and test.yml to latest actions. #361

Workflow file for this run

name: Tests
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: stable
- os: macos-latest
target: x86_64-apple-darwin
toolchain: stable
- os: windows-latest
target: x86_64-pc-windows-gnu
toolchain: stable
- os: windows-latest
target: x86_64-pc-windows-msvc
toolchain: beta
- os: ubuntu-latest
deps: sudo apt update ; sudo apt install gcc-multilib
target: i686-unknown-linux-gnu
toolchain: nightly
steps:
- uses: actions/checkout@v7
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
targets: ${{ matrix.target }}
- run: ${{ matrix.deps }}
- name: Test sailfish
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish/Cargo.toml --no-default-features
cargo test --target ${{ matrix.target }} --manifest-path sailfish/Cargo.toml --all-features
- name: Test sailfish-compiler
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish-compiler/Cargo.toml
- name: Integration tests
# Currently integration tests have some issue related to line feeds
if: ${{ matrix.os != 'windows-latest' }}
run: |
cargo test --target ${{ matrix.target }} --manifest-path sailfish-tests/integration-tests/Cargo.toml
test-miri:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install toolchain
run: |
MIRI_NIGHTLY=nightly-$(curl -s https://rust-lang.github.io/rustup-components-history/x86_64-unknown-linux-gnu/miri)
rustup default "$MIRI_NIGHTLY"
rustup component add miri
- name: Test sailfish
run: |
cargo miri test --manifest-path sailfish/Cargo.toml --no-default-features
cargo miri test --manifest-path sailfish/Cargo.toml --all-features
test-ios:
runs-on: macos-latest
steps:
- uses: actions/checkout@v7
- name: Install toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: aarch64-apple-ios
- name: Build only
run: cargo build --target=aarch64-apple-ios --workspace