Skip to content
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
23 changes: 10 additions & 13 deletions .github/workflows/test_rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ concurrency:
jobs:
changes:
name: Paths filter
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
outputs:
should_run: ${{ steps.filter.outputs.src }}
steps:
Expand All @@ -39,12 +39,12 @@ jobs:
fail-fast: false
matrix:
rust_version: [stable]
os: [ubuntu-22.04, windows-latest, macos-14]
os: [ubuntu-24.04, windows-latest, macos-14]
include:
- rust_version: nightly
os: ubuntu-22.04
os: ubuntu-24.04
- rust_version: beta
os: ubuntu-22.04
os: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -57,7 +57,6 @@ jobs:
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: |
sudo add-apt-repository ppa:kisak/kisak-mesa -y
sudo apt-get update
sudo apt install -y libasound2-dev libxcb-shape0-dev libxcb-xfixes0-dev libgtk-3-dev mesa-vulkan-drivers libpango1.0-dev libudev-dev

Expand All @@ -82,9 +81,7 @@ jobs:

- name: Run tests with image tests
if: runner.os != 'macOS'
# TODO: Disallow retries in general once we can allow only after SIGABRT.
# See: https://github.com/nextest-rs/nextest/issues/1172
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast --retries 2 -j 4 --features imgtests,lzma,jpegxr
run: cargo nextest run --cargo-profile ci --workspace --locked --no-fail-fast -j 4 --features imgtests,lzma,jpegxr
env:
# This is to counteract the disabling by rust-cache.
# See: https://github.com/Swatinem/rust-cache/issues/43
Expand Down Expand Up @@ -116,7 +113,7 @@ jobs:
needs: changes
if: needs.changes.outputs.should_run == 'true'
name: Lints with Rust ${{ matrix.rust_version }}
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04
continue-on-error: ${{ matrix.rust_version == 'nightly' || matrix.rust_version == 'beta' }}
strategy:
fail-fast: false
Expand Down Expand Up @@ -157,7 +154,7 @@ jobs:
needs: changes
if: needs.changes.outputs.should_run == 'true'
name: Check dependencies
runs-on: ubuntu-22.04
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand All @@ -181,12 +178,12 @@ jobs:
strategy:
matrix:
rust_version: [stable]
os: [ubuntu-22.04, windows-latest, macos-14]
os: [ubuntu-24.04, windows-latest, macos-14]
include:
- rust_version: nightly
os: ubuntu-22.04
os: ubuntu-24.04
- rust_version: beta
os: ubuntu-22.04
os: ubuntu-24.04

steps:
- name: No-op
Expand Down