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:
|
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
|
||||||
|
|
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue