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
21
.github/workflows/rust.yml
vendored
21
.github/workflows/rust.yml
vendored
|
@ -9,16 +9,27 @@ on:
|
|||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
|
||||
# Make sure CI fails on all warnings, including Clippy lints
|
||||
RUSTFLAGS: "-Dwarnings"
|
||||
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Install system dependencies
|
||||
run: sudo apt-get install -y liblzma-dev libfontconfig1-dev
|
||||
- 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 -qy liblzma-dev libfontconfig1-dev
|
||||
|
||||
- name: Build
|
||||
run: cargo build --verbose
|
||||
- name: Run Clippy
|
||||
run: cargo clippy --all-targets --all-features
|
||||
|
||||
- name: Build
|
||||
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