Skip to content

Commit

Permalink
Update GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
TitanNano committed Jun 17, 2024
1 parent 54b9d36 commit e71de3f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
vendor: pc
env: '-msvc'
- platform: darwin
os: macos-11
os: macos-14
vendor: apple

runs-on: ${{ matrix.os }}
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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' }}
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@ 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
run: |
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

0 comments on commit e71de3f

Please sign in to comment.