change pipeline to also run on forgejo, add clippy check
Some checks failed
Rust / build (push) Failing after 29s

This commit is contained in:
Vinzenz Schroeter 2025-02-07 21:22:33 +01:00
parent 3d84c6fbf7
commit 36c9c76139
2 changed files with 17 additions and 6 deletions

View file

@ -9,16 +9,27 @@ on:
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
# Make sure CI fails on all warnings, including Clippy lints
RUSTFLAGS: "-Dwarnings"
jobs: jobs:
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
- name: Install system dependencies - name: Update repos
run: sudo apt-get install -y liblzma-dev libfontconfig1-dev run: sudo apt-get update -qq
- name: Install rust toolchain
run: sudo apt-get install -qy cargo rust-clippy
- name: Install system dependencies
run: sudo apt-get install -qy liblzma-dev libfontconfig1-dev
- name: Build - name: Run Clippy
run: cargo build --verbose run: cargo clippy --all-targets --all-features
- name: Build
run: cargo build --release --verbose

View file

@ -109,7 +109,7 @@ impl<'t> Gui<'t> {
} }
} }
impl<'t> ApplicationHandler<AppEvents> for Gui<'t> { impl ApplicationHandler<AppEvents> for Gui<'_> {
fn resumed(&mut self, event_loop: &ActiveEventLoop) { fn resumed(&mut self, event_loop: &ActiveEventLoop) {
self.window = Some(GuiWindow::new(event_loop, self.logical_size)); self.window = Some(GuiWindow::new(event_loop, self.logical_size));
} }