Skip to content

Bump serenity from 55743c5 to 2fdbd06 #20

Bump serenity from 55743c5 to 2fdbd06

Bump serenity from 55743c5 to 2fdbd06 #20

Workflow file for this run

# This file is part of jinx. Copyright © 2024 jinx contributors.
# jinx is licensed under the GNU AGPL v3.0 or any later version. See LICENSE file for full text.
name: CI
on:
pull_request:
branches: # run for pull requests that target master or prerelease
- master
- prerelease
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
jobs:
cargo-deny:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: EmbarkStudios/cargo-deny-action@v2
with:
rust-version: "1.85.0"
cargo-fmt:
runs-on: ubuntu-latest
steps:
- name: Update Rust Toolchain
run: rustup update
- name: Install Cargo
run: rustup component add cargo
- name: Install Clippy
run: rustup component add rustfmt
- uses: actions/checkout@v6
- name: Format
run: cargo fmt --check
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: false
- runs-on: macos-latest
triple: aarch64-apple-darwin
build-name: macOS ARM
artifact-suffix: -mac-arm
suffix: ''
path-separator: '/'
runner-can-execute: true
fail-fast: false
name: Test ${{ matrix.target.build-name }}
runs-on: ${{ matrix.target.runs-on }}
steps:
- name: Install Rust target
run: rustup target add ${{ matrix.target.triple }}
- name: Install Cargo
run: rustup component add cargo
- name: Install Clippy
run: rustup component add clippy
- name: git checkout
uses: actions/checkout@v6
- name: Setup workflow cache
uses: actions/cache@v5
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Check
run: cargo clippy --target ${{ matrix.target.triple }}
- name: Test
if: matrix.target.runner-can-execute
run: cargo test --target ${{ matrix.target.triple }}