Use my own flavor of GitHub workflows

This commit is contained in:
Héctor Ramón Jiménez 2025-03-08 23:46:54 +01:00
parent 59a3ecef65
commit ba9d0ba054
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
5 changed files with 50 additions and 22 deletions

2
.github/FUNDING.yml vendored
View file

@ -1 +1 @@
github: [grovesNL]
github: [grovesNL, hecrj]

View file

@ -1,21 +0,0 @@
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose

12
.github/workflows/format.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: Format
on: [push, pull_request]
jobs:
all:
runs-on: ubuntu-latest
steps:
- uses: hecrj/setup-rust-action@v2
with:
components: rustfmt
- uses: actions/checkout@master
- name: Check format
run: cargo fmt --all -- --check --verbose

12
.github/workflows/lint.yml vendored Normal file
View file

@ -0,0 +1,12 @@
name: Lint
on: [push, pull_request]
jobs:
all:
runs-on: macOS-latest
steps:
- uses: hecrj/setup-rust-action@v2
with:
components: clippy
- uses: actions/checkout@master
- name: Check lints
run: cargo clippy --workspace --no-deps

25
.github/workflows/test.yml vendored Normal file
View file

@ -0,0 +1,25 @@
name: Test
on: [push, pull_request]
jobs:
all:
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: --deny warnings
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
rust: [stable, beta]
steps:
- uses: hecrj/setup-rust-action@v2
with:
rust-version: ${{ matrix.rust }}
- uses: actions/checkout@master
- name: Install dependencies
if: matrix.os == 'ubuntu-latest'
run: |
export DEBIAN_FRONTED=noninteractive
sudo apt-get -qq update
sudo apt-get install -y libxkbcommon-dev
- name: Run tests
run: |
cargo test --verbose --workspace