github actions

This commit is contained in:
galister
2025-12-12 20:38:46 +09:00
parent 8a81441645
commit c95e4a93f6
16 changed files with 45 additions and 15 deletions

32
.github/workflows/build-default.yml vendored Normal file
View File

@@ -0,0 +1,32 @@
name: Check Default
on:
pull_request:
#branches: [ "!main" ]
env:
CARGO_TERM_COLOR: always
SCCACHE_GHA_ENABLED: "true"
RUSTC_WRAPPER: "sccache"
jobs:
build:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./wlx-overlay-s
steps:
- uses: actions/checkout@v4
- name: Setup sccache
uses: mozilla-actions/sccache-action@v0.0.9
- name: Prepare Environment
run: |
../.github/workflows/scripts/appimage_prepare_env.sh
- name: Run cargo fmt
run: cargo fmt --check
- name: Build
run: cargo build --verbose
- name: Run clippy
run: cargo clippy --no-deps
- name: Run tests
run: cargo test --verbose