From d5e55c711946cb5b7acb79464479f25cbfba4cd5 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Thu, 16 May 2024 20:00:29 +0100 Subject: [PATCH] build(forgejo): use rust action --- .cargo/config.toml | 10 +++++++--- .forgejo/workflows/push-next.yml | 30 ++++++++---------------------- 2 files changed, 15 insertions(+), 25 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 6c32808..2082df4 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,7 +1,12 @@ # ./cargo/config [target.x86_64-unknown-linux-gnu] -linker = "/usr/bin/clang-15" -rustflags = ["-C", "link-arg=--ld-path=/usr/bin/mold", "--cfg", "tokio_unstable"] +linker = "/usr/bin/clang-16" +rustflags = [ + "-C", + "link-arg=--ld-path=/usr/bin/mold", + "--cfg", + "tokio_unstable", +] [profile.dev] debug = 0 @@ -10,4 +15,3 @@ strip = "debuginfo" [env] RUSTLOG = "hyper=warn" RUSTFLAGS = "--cfg tokio_unstable" - diff --git a/.forgejo/workflows/push-next.yml b/.forgejo/workflows/push-next.yml index f74803e..9054a60 100644 --- a/.forgejo/workflows/push-next.yml +++ b/.forgejo/workflows/push-next.yml @@ -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.5 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.5 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.5 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.5 with: - command: test + args: test