From d250ed4c3fe66965bb26ae7bb22153d0de9817c3 Mon Sep 17 00:00:00 2001 From: Jovan Gerodetti Date: Mon, 17 Jun 2024 14:55:57 +0200 Subject: [PATCH] Update GitHub Actions (#109) --- .github/workflows/build.yml | 10 +++++----- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f481c22..4d4ca63 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -24,7 +24,7 @@ jobs: vendor: pc env: '-msvc' - platform: darwin - os: macos-11 + os: macos-14 vendor: apple runs-on: ${{ matrix.os }} @@ -37,7 +37,7 @@ jobs: steps: - name: checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up clang64 if: contains(matrix.os, 'windows') run: echo "LIBCLANG_PATH=$((gcm clang).source -replace "clang.exe")" >> $env:GITHUB_ENV @@ -46,7 +46,7 @@ jobs: run: sudo apt install gcc-aarch64-linux-gnu - name: Add Build target run: rustup target add ${{ env.TARGET_TRIPLET }} - - uses: Swatinem/rust-cache@v1 + - uses: Swatinem/rust-cache@v2 with: key: ${{ matrix.arch }} - name: Build Debug @@ -58,7 +58,7 @@ jobs: run: | ${{ env.CARGO_BUILD}} ${{ env.TARGET_TRIPLET}} --release - name: Artifacts - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: sc2mpz-${{ matrix.platform }}-${{ matrix.arch }} - path: target/${{ env.TARGET_TRIPLET }}/${{ inputs.release && 'release' || 'debug' }}/sc2mpz + path: target/${{ env.TARGET_TRIPLET }}/${{ inputs.release && 'release' || 'debug' }}/sc2mpz${{ matrix.platform == 'windows' && '.exe' || '' }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 896aa86..238859e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,12 +14,12 @@ jobs: uses: ./.github/workflows/build.yml rust-clippy: - runs-on: 'ubuntu-18.04' + runs-on: 'ubuntu-20.04' steps: - name: checkout - uses: actions/checkout@v3 - - uses: Swatinem/rust-cache@v1 + uses: actions/checkout@v4 + - uses: Swatinem/rust-cache@v2 - name: Install Build Dependencies run: cargo install clippy-sarif sarif-fmt - name: Check @@ -27,7 +27,7 @@ jobs: cargo clippy --all-targets --message-format json -- -A dead_code -D warnings | clippy-sarif | tee rust-clippy-results.sarif | sarif-fmt continue-on-error: true - name: Upload Results - uses: github/codeql-action/upload-sarif@v2 + uses: github/codeql-action/upload-sarif@v3 with: sarif_file: rust-clippy-results.sarif wait-for-processing: true