Skip to content

GUI, of sorts

GUI, of sorts #8

Workflow file for this run

name: Build/lint/test
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: "-Dwarnings"
jobs:
check-format:
name: "Check code formatting"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/rustup
- uses: awalsh128/cache-apt-pkgs-action@v1.4.2
with:
packages: libgtk-4-1 libgtk-4-dev
- name: Check formatting
run: cargo fmt --check
build:
name: "Build"
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1.4.2
with:
packages: libgtk-4-1 libgtk-4-dev
- uses: ./.github/actions/rustup
- name: Build
run: cargo build --verbose
lint:
name: "Run clippy"
runs-on: ubuntu-24.04
needs: [ "build" ]
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1.4.2
with:
packages: libgtk-4-1 libgtk-4-dev
- uses: ./.github/actions/rustup
- name: Run clippy
run: cargo clippy --all-targets --all-features
test:
name: "Run tests"
runs-on: ubuntu-24.04
needs: [ "build" ]
steps:
- uses: actions/checkout@v4
- uses: awalsh128/cache-apt-pkgs-action@v1.4.2
with:
packages: libgtk-4-1 libgtk-4-dev
- uses: ./.github/actions/rustup
- name: Run tests
run: cargo test --verbose