This commit is contained in:
parent
cc965e7c0a
commit
942d197c05
1 changed files with 26 additions and 22 deletions
|
@ -4,18 +4,18 @@ on: [push]
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
formatting:
|
# formatting:
|
||||||
name: Formatting
|
# name: Formatting
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout
|
# - name: Checkout
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Set up Rust
|
# - name: Set up Rust
|
||||||
uses: https://github.com/dtolnay/rust-toolchain@nightly
|
# uses: https://github.com/dtolnay/rust-toolchain@nightly
|
||||||
with:
|
# with:
|
||||||
components: rustfmt
|
# components: rustfmt
|
||||||
- name: Check Rust formatting
|
# - name: Check Rust formatting
|
||||||
run: cargo fmt --all -- --check
|
# run: cargo fmt --all -- --check
|
||||||
|
|
||||||
clippy:
|
clippy:
|
||||||
name: Clippy
|
name: Clippy
|
||||||
|
@ -27,16 +27,20 @@ jobs:
|
||||||
uses: https://github.com/dtolnay/rust-toolchain@nightly
|
uses: https://github.com/dtolnay/rust-toolchain@nightly
|
||||||
with:
|
with:
|
||||||
components: clippy
|
components: clippy
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
sudo apt-get update
|
||||||
|
sudo apt-get -y install wayland-protocols
|
||||||
- name: Run Clippy
|
- name: Run Clippy
|
||||||
run: cargo clippy -- -D warnings
|
run: cargo clippy -- -D warnings
|
||||||
|
|
||||||
build:
|
# build:
|
||||||
name: Build
|
# name: Build
|
||||||
runs-on: ubuntu-22.04
|
# runs-on: ubuntu-22.04
|
||||||
steps:
|
# steps:
|
||||||
- name: Checkout the code
|
# - name: Checkout the code
|
||||||
uses: actions/checkout@v4
|
# uses: actions/checkout@v4
|
||||||
- name: Set up Rust
|
# - name: Set up Rust
|
||||||
uses: https://github.com/dtolnay/rust-toolchain@nightly
|
# uses: https://github.com/dtolnay/rust-toolchain@nightly
|
||||||
- name: Build project
|
# - name: Build project
|
||||||
run: cargo build
|
# run: cargo build
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue