Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: refactor github ci so that it doesn't use 1.65 for tests #442

Merged
merged 2 commits into from
Mar 1, 2024
Merged
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
53 changes: 37 additions & 16 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,31 +25,52 @@ jobs:
key: cargo-${{ matrix.rust }}

- name: Rust toolchain
uses: actions-rs/toolchain@v1
uses: hecrj/setup-rust-action@v1
with:
toolchain: ${{ matrix.rust }}
override: true
rust-version: ${{ matrix.rust }}

- name: Install system dependencies
run: sudo apt-get install libxkbcommon-dev libwayland-dev

- name: Test lib no features
uses: actions-rs/cargo@v1
- name: Check lib no features
run: cargo check --no-default-features

- name: Check full features
run: cargo check --all-features

test:
strategy:
fail-fast: false
matrix:
rust: ['stable', 'beta']
runs-on: ubuntu-latest

steps:
- name: Checkout sources
uses: actions/checkout@v2

- name: Cargo cache
uses: actions/cache@v1
with:
command: test
args: --no-default-features --lib
path: ~/.cargo
key: cargo-${{ matrix.rust }}

- name: Test doc no features
uses: actions-rs/cargo@v1
- name: Rust toolchain
uses: hecrj/setup-rust-action@v1
with:
command: test
args: --no-default-features --doc
rust-version: ${{ matrix.rust }}

- name: Install system dependencies
run: sudo apt-get install libxkbcommon-dev libwayland-dev

- name: Test lib no features
run: cargo test --no-default-features --lib

- name: Test doc no features
run: cargo test --no-default-features --doc

- name: Test full features
uses: actions-rs/cargo@v1
with:
command: test
args: --all-features
run: cargo test --all-features

lint:
runs-on: ubuntu-latest
Expand All @@ -59,7 +80,7 @@ jobs:
uses: actions/checkout@v2

- name: Rust toolchain
uses: actions-rs/toolchain@v1
uses: hecrj/setup-rust-action@v1
with:
toolchain: stable
override: true
Expand Down
Loading