From c2554ab2b593b90c9d4a67d25335b6c05faf2aa0 Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 12 Jan 2025 13:43:46 +0000 Subject: [PATCH] build: upgrade kemitix/rust v3 --- .forgejo/workflows/push-main.yml | 15 +++++++++------ .forgejo/workflows/push-next.yml | 28 ++++++++++------------------ 2 files changed, 19 insertions(+), 24 deletions(-) diff --git a/.forgejo/workflows/push-main.yml b/.forgejo/workflows/push-main.yml index 16e4903..c073b30 100644 --- a/.forgejo/workflows/push-main.yml +++ b/.forgejo/workflows/push-main.yml @@ -16,20 +16,23 @@ jobs: release-plz: name: Release-plz runs-on: docker + + container: + image: + git.kemitix.net/kemitix/rust:v3.0.0 + steps: - name: Checkout repository uses: actions/checkout@v4 with: fetch-depth: 0 + - name: Run release-plz release-pr - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} + run: release-plz release-pr --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} + - name: Run release-plz release - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} + run: release-plz release --backend gitea --git-token ${{ secrets.FORGEJO_TOKEN }} env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} diff --git a/.forgejo/workflows/push-next.yml b/.forgejo/workflows/push-next.yml index 8d8e006..a448f88 100644 --- a/.forgejo/workflows/push-next.yml +++ b/.forgejo/workflows/push-next.yml @@ -16,6 +16,10 @@ jobs: build: runs-on: docker + container: + image: + git.kemitix.net/kemitix/rust:v3.0.0 + strategy: matrix: toolchain: @@ -33,32 +37,20 @@ jobs: uses: kemitix/todo-checker@v1.1.0 - name: Machete - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo machete + run: cargo +${{ matrix.toolchain.name }} machete - name: Format - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo fmt --all -- --check + run: cargo +${{ matrix.toolchain.name }} fmt --all --check - name: Clippy - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset clippy + run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset clippy - name: Build - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset build + run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset build - name: Test - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo hack --feature-powerset test + run: cargo +${{ matrix.toolchain.name }} hack --feature-powerset test - name: Mutations - uses: https://git.kemitix.net/kemitix/rust@v2.6.0 - with: - args: ${{ matrix.toolchain.name }} cargo mutants -vV --in-place + run: cargo +${{ matrix.toolchain.name }} mutabts -vV --in-place