From 4ff81b0168ca92d2f2a0a3190a8ec207392faf8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1s=20Far=C3=ADas=20Santana?= Date: Fri, 10 May 2024 16:03:08 +0200 Subject: [PATCH] fix: Remove deprecated actions, bump versions --- .github/workflows/cd.yml | 25 +++++++++++-------------- .github/workflows/ci.yml | 20 +++++++++----------- 2 files changed, 20 insertions(+), 25 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index ebb4eb4..e670638 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -21,25 +21,22 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - profile: minimal + targets: ${{ matrix.job.target }} - name: Build target - uses: actions-rs/cargo@v1 - with: - use-cross: ${{ matrix.job.use-cross }} - command: build - args: --release --bin c2g --target ${{ matrix.job.target }} + run: cargo build --release --bin c2g --target ${{ matrix.job.target }} + + - name: Format + run: cargo fmt --all -- --check - name: Test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test - name: Upload target uses: actions/upload-artifact@v3 @@ -83,7 +80,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up Docker Buildx uses: crazy-max/ghaction-docker-buildx@v3 @@ -119,10 +116,10 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c136be6..ad1e8b3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,22 +24,20 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Install rust toolchain - uses: actions-rs/toolchain@v1 + uses: dtolnay/rust-toolchain@stable with: toolchain: stable - profile: minimal + targets: ${{ matrix.job.target }} + components: clippy, rustfmt - name: Build target - uses: actions-rs/cargo@v1 - with: - use-cross: ${{ matrix.job.use-cross }} - command: build - args: --release --bin c2g --target ${{ matrix.job.target }} + run: cargo build --release --bin c2g --target ${{ matrix.job.target }} + + - name: Format + run: cargo fmt --all -- --check - name: Test - uses: actions-rs/cargo@v1 - with: - command: test + run: cargo test