mirror of
https://github.com/danbulant/cushy
synced 2026-07-07 12:10:44 +00:00
Switching test CI to a matrix
Also adding Mac
This commit is contained in:
parent
aa790d0411
commit
f0e1118719
1 changed files with 8 additions and 34 deletions
42
.github/workflows/rust.yml
vendored
42
.github/workflows/rust.yml
vendored
|
|
@ -4,55 +4,29 @@ on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
matrix:
|
||||||
|
version: ["stable", "1.70.0"]
|
||||||
|
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Install x11 dependencies for Kludgine
|
- name: Install x11 dependencies for Kludgine
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update -y -qq
|
sudo apt-get update -y -qq
|
||||||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install -y \
|
sudo apt-get install -y \
|
||||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
- uses: dtolnay/rust-toolchain@${{ matrix.version }}
|
||||||
|
|
||||||
- name: Run clippy
|
- name: Run clippy
|
||||||
|
if: matrix.version == 'stable'
|
||||||
run: |
|
run: |
|
||||||
cargo clippy --all-features --all-targets
|
cargo clippy --all-features --all-targets
|
||||||
|
|
||||||
- name: Run default features unit tests
|
- name: Run default features unit tests
|
||||||
run: |
|
run: |
|
||||||
cargo test --all-features --all-targets
|
cargo test --all-features --all-targets
|
||||||
|
|
||||||
test-msrv:
|
|
||||||
name: Test on MSRV
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Install x11 dependencies for Kludgine
|
|
||||||
run: |
|
|
||||||
sudo apt-get update -y -qq
|
|
||||||
sudo add-apt-repository ppa:oibaf/graphics-drivers -y
|
|
||||||
sudo apt-get update
|
|
||||||
sudo apt-get install -y \
|
|
||||||
libegl1-mesa libgl1-mesa-dri libxcb-xfixes0-dev mesa-vulkan-drivers
|
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@1.70.0
|
|
||||||
|
|
||||||
- name: Run default features unit tests
|
|
||||||
run: |
|
|
||||||
cargo test --all-features --all-targets
|
|
||||||
|
|
||||||
test-windows:
|
|
||||||
name: Test on MSRV
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- uses: dtolnay/rust-toolchain@stable
|
|
||||||
|
|
||||||
- name: Run default features unit tests
|
|
||||||
run: |
|
|
||||||
cargo test --all-features --all-targets
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue