build(forgejo): use rust action
Some checks failed
Rust / build (push) Failing after 15s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful

This commit is contained in:
Paul Campbell 2024-05-16 20:00:29 +01:00
parent c90aef3796
commit 04183a1fca

View file

@ -17,36 +17,22 @@ jobs:
- name: Checkout - name: Checkout
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Toolchain
uses: https://github.com/actions-rs/toolchain@v1
with:
toolchain: stable
- name: Format - name: Format
uses: https://github.com/actions-rs/cargo@v1 uses: https://git.kemitix.net/kemitix/rust@v0.2.4
with: with:
command: fmt args: fmt --all -- --check
args: --all -- --check
- name: Update apt
run: apt-get update
- name: Install linkers
run: apt-get install -y clang-15 mold
- name: Clippy - name: Clippy
uses: https://github.com/actions-rs/cargo@v1 uses: https://git.kemitix.net/kemitix/rust@v0.2.4
with: with:
command: clippy args: clippy -- -D warnings
args: -- -D warnings
- name: Build - name: Build
uses: https://github.com/actions-rs/cargo@v1 uses: https://git.kemitix.net/kemitix/rust@v0.2.4
with: with:
command: build args: build
# args: --release --all-features
- name: Test - name: Test
uses: https://github.com/actions-rs/cargo@v1 uses: https://git.kemitix.net/kemitix/rust@v0.2.4
with: with:
command: test args: test