27 lines
572 B
YAML
Raw Normal View History

2024-12-03 19:46:21 +02:00
name: Rust
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
2024-12-03 21:58:13 +02:00
- name: Install system packages
2024-12-04 02:08:04 +02:00
run: sudo apt install -y libgtk-4-dev libglib2.0-dev
2024-12-04 02:04:30 +02:00
- name: Set PKG_CONFIG_PATH
2024-12-04 02:38:01 +02:00
run: echo "PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/share/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig" >> $GITHUB_ENV
2024-12-03 19:46:21 +02:00
- name: Build
2024-12-04 02:04:30 +02:00
run: cargo build --verbose
2024-12-03 19:46:21 +02:00
- name: Run tests
run: cargo test --verbose