Merge pull request #31 from fwcd/navigation #149
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
name: Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
env: | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: ['ubuntu-latest', 'macos-latest'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Rust | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: clippy | |
- name: Install system dependencies (Linux) | |
if: runner.os == 'Linux' | |
run: sudo apt-get install -y libadwaita-1-dev libgtk-4-dev | |
- name: Install system dependencies (macOS) | |
if: runner.os == 'macOS' | |
run: brew install libadwaita gtk4 | |
- name: Build and Test | |
run: scripts/test | |
- name: Lint | |
run: scripts/lint |