change pipeline to also run on forgejo, add clippy check
Some checks failed
Rust / build (push) Failing after 29s
Some checks failed
Rust / build (push) Failing after 29s
This commit is contained in:
parent
3d84c6fbf7
commit
36c9c76139
15
.github/workflows/rust.yml
vendored
15
.github/workflows/rust.yml
vendored
|
@ -9,6 +9,10 @@ on:
|
|||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
# Make sure CI fails on all warnings, including Clippy lints
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
|
@ -17,8 +21,15 @@ jobs:
|
|||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Update repos
|
||||
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 -y liblzma-dev libfontconfig1-dev
|
||||
run: sudo apt-get install -qy liblzma-dev libfontconfig1-dev
|
||||
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
run: cargo build --release --verbose
|
||||
|
|
|
@ -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) {
|
||||
self.window = Some(GuiWindow::new(event_loop, self.logical_size));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue