Skip to content

chore: increase patch version number #76

chore: increase patch version number

chore: increase patch version number #76

Workflow file for this run

name: Tests and static analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# We want to regularly run the tests, since the AAO player may often get updated.
- cron: "47 4 * * *"
jobs:
check:
name: Check
if: ${{ github.event_name != 'schedule' }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
kind: [debug, release]
runs-on: ${{ matrix.os }}
env:
RUSTFLAGS: "-D warnings"
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo check ${{ matrix.kind == 'release' && '--release' || '' }}
- run: cargo clippy ${{ matrix.kind == 'release' && '--release' || '' }}
test:
name: Run tests
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
kind: [debug, release]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo test --no-fail-fast ${{ matrix.kind == 'release' && '--release' || '' }}
formatting:
name: Check formatting
if: ${{ github.event_name != 'schedule' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo fmt --all -- --check
build:
name: Build ${{ matrix.kind }} for ${{ matrix.os }}
if: ${{ github.event_name != 'schedule' }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
kind: [debug, release]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- run: cargo build ${{ matrix.kind == 'release' && '--release' || '' }}
- uses: actions/upload-artifact@v4
if: ${{ matrix.kind == 'release' }}
with:
name: ${{ matrix.os == 'windows-latest' && 'aaoffline.exe' || 'aaoffline' }}
path: ${{ format('target/{0}/aaoffline{1}', matrix.kind, matrix.os == 'windows-latest' && '.exe' || '') }}