This commit is contained in:
42
.gitea/workflows/build.yaml
Normal file
42
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
name: Build Project
|
||||
|
||||
on:
|
||||
push:
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
build:
|
||||
name: Build Linux
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install -y \
|
||||
build-essentials pkg-config libgtk-4-dev libgtk4-layer-shell-dev
|
||||
|
||||
- name: Install Rust
|
||||
run: |
|
||||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
|
||||
| sh -s -- -y --profile minimal
|
||||
source "$HOME/.cargo/env"
|
||||
cargo --version
|
||||
|
||||
- name: Install Rust components
|
||||
run: |
|
||||
rustup component add rustfmt clippy
|
||||
|
||||
- name: Check formatting
|
||||
run: cargo fmt --all -- --check
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features -- -D warnings
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --locked
|
||||
|
||||
- name: Build release binaries
|
||||
run: cargo build --locked --release --bins
|
||||
Reference in New Issue
Block a user