mirror of https://github.com/phc-dm/phc-tweaks/
Merge branch 'main' of github.com:phc-dm/phc-tweaks
commit
c947d634ee
@ -0,0 +1,53 @@
|
|||||||
|
name: Rust
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
lint:
|
||||||
|
name: Lint
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install GTK4 dependencies
|
||||||
|
run: sudo apt-get install -y libgtk-4-dev
|
||||||
|
- name: Setup | Rust
|
||||||
|
uses: ATiltedTree/setup-rust@v1
|
||||||
|
with:
|
||||||
|
rust-version: stable
|
||||||
|
components: clippy
|
||||||
|
- name: Build | Lint
|
||||||
|
run: cargo clippy
|
||||||
|
compile:
|
||||||
|
name: Compile
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install GTK4 dependencies
|
||||||
|
run: sudo apt-get install -y libgtk-4-dev
|
||||||
|
- name: Setup | Rust
|
||||||
|
uses: ATiltedTree/setup-rust@v1
|
||||||
|
with:
|
||||||
|
rust-version: stable
|
||||||
|
- name: Build | Compile
|
||||||
|
run: cargo check
|
||||||
|
test:
|
||||||
|
name: Test
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [compile]
|
||||||
|
steps:
|
||||||
|
- name: Setup | Checkout
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
- name: Install GTK4 dependencies
|
||||||
|
run: sudo apt-get install -y libgtk-4-dev
|
||||||
|
- name: Setup | Rust
|
||||||
|
uses: ATiltedTree/setup-rust@v1
|
||||||
|
with:
|
||||||
|
rust-version: stable
|
||||||
|
- name: Build | Compile
|
||||||
|
run: cargo test
|
Loading…
Reference in New Issue