build(forgejo): use rust action
This commit is contained in:
parent
c90aef3796
commit
04183a1fca
1 changed files with 8 additions and 22 deletions
|
@ -17,36 +17,22 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Toolchain
|
||||
uses: https://github.com/actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
|
||||
- name: Format
|
||||
uses: https://github.com/actions-rs/cargo@v1
|
||||
uses: https://git.kemitix.net/kemitix/rust@v0.2.4
|
||||
with:
|
||||
command: fmt
|
||||
args: --all -- --check
|
||||
|
||||
- name: Update apt
|
||||
run: apt-get update
|
||||
|
||||
- name: Install linkers
|
||||
run: apt-get install -y clang-15 mold
|
||||
args: fmt --all -- --check
|
||||
|
||||
- name: Clippy
|
||||
uses: https://github.com/actions-rs/cargo@v1
|
||||
uses: https://git.kemitix.net/kemitix/rust@v0.2.4
|
||||
with:
|
||||
command: clippy
|
||||
args: -- -D warnings
|
||||
args: clippy -- -D warnings
|
||||
|
||||
- name: Build
|
||||
uses: https://github.com/actions-rs/cargo@v1
|
||||
uses: https://git.kemitix.net/kemitix/rust@v0.2.4
|
||||
with:
|
||||
command: build
|
||||
# args: --release --all-features
|
||||
args: build
|
||||
|
||||
- name: Test
|
||||
uses: https://github.com/actions-rs/cargo@v1
|
||||
uses: https://git.kemitix.net/kemitix/rust@v0.2.4
|
||||
with:
|
||||
command: test
|
||||
args: test
|
||||
|
|
Loading…
Reference in a new issue