Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 0 additions & 31 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,34 +23,3 @@ jobs:
run: cargo clippy --workspace -- -D warnings
- name: Check rustfmt
run: cargo fmt --all -- --check

test:
name: Run unit test and integration test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: stable

- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: nightly
steps:
- uses: actions/checkout@v4
- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
- run: ${{ matrix.deps }}
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: openjdk-8-jdk build-essential python3 python-is-python3 libseccomp-dev libgbm-dev libxkbcommon-x11-0 pkg-config rustc
- name: Run test
run: |
cargo test --target ${{ matrix.target }}
53 changes: 53 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
on:
workflow_dispatch:
push:
branches: main
pull_request:
branches: main

permissions:
contents: read

jobs:
test:
name: Run test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: stable

- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
toolchain: nightly
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install toolchain
uses: dtolnay/rust-toolchain@master
with:
target: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
components: llvm-tools-preview

- name: Init rust cache
uses: Swatinem/rust-cache@v2

- name: Install cargo nextest
uses: taiki-e/install-action@nextest

- name: Install cargo-llvm-cov
uses: taiki-e/install-action@cargo-llvm-cov

- name: Install dependencies
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: openjdk-8-jdk build-essential python3 python-is-python3 libseccomp-dev libgbm-dev libxkbcommon-x11-0 pkg-config rustc

- name: Run test
run: |
cargo llvm-cov nextest --target ${{ matrix.target }}