Bump winit from 0.28.7 to 0.29.2 #16
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This file is part of simple-crosshair-overlay and is licenced under the GNU GPL v3.0. | |
# See LICENSE file for full text. | |
# Copyright © 2023 Michael Ripley | |
name: CI | |
on: | |
pull_request: | |
branches: | |
- master # run for pull requests that target master | |
paths-ignore: # ignore files that can't alter build output | |
- '**.md' | |
- .github/dependabot.yml | |
- .github/workflows/build.yml | |
- .github/workflows/publish.yml | |
- .gitignore | |
- docs/** | |
- LICENSE | |
- screenshots/** | |
jobs: | |
cargo-deny: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: EmbarkStudios/cargo-deny-action@v1 | |
with: | |
arguments: --workspace | |
test: | |
strategy: | |
matrix: | |
target: | |
- runs-on: windows-latest | |
triple: x86_64-pc-windows-msvc | |
build-name: Windows | |
artifact-suffix: '' | |
suffix: .exe | |
path-separator: '\' | |
runner-can-execute: true | |
# - runs-on: ubuntu-latest | |
# triple: x86_64-unknown-linux-gnu | |
# build-name: Linux | |
# artifact-suffix: -linux | |
# suffix: '' | |
# path-separator: '/' | |
# runner-can-execute: true | |
- runs-on: macos-latest | |
triple: x86_64-apple-darwin | |
build-name: macOS x86 | |
artifact-suffix: -mac-x86 | |
suffix: '' | |
path-separator: '/' | |
runner-can-execute: true | |
- runs-on: macos-latest | |
triple: aarch64-apple-darwin | |
build-name: macOS ARM | |
artifact-suffix: -mac-arm | |
suffix: '' | |
path-separator: '/' | |
runner-can-execute: false | |
fail-fast: false | |
name: Test ${{ matrix.target.build-name }} | |
runs-on: ${{ matrix.target.runs-on }} | |
steps: | |
- name: git checkout | |
uses: actions/checkout@v4 | |
- name: Setup workflow cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
~/.cargo/bin/ | |
~/.cargo/registry/index/ | |
~/.cargo/registry/cache/ | |
~/.cargo/git/db/ | |
target/ | |
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} | |
- name: Setup Rust toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
target: ${{ matrix.target.triple }} | |
- name: Install extra Linux dependencies | |
if: matrix.target.runs-on == 'ubuntu-latest' | |
run: | # gdk-sys needs {libgtk-3-dev}. | |
sudo apt-get update | |
sudo apt-get install -y libgtk-3-dev | |
- name: Check | |
run: cargo check --workspace --target ${{ matrix.target.triple }} | |
- name: Test | |
if: matrix.target.runner-can-execute | |
run: cargo test --workspace --target ${{ matrix.target.triple }} |