Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GitHub Actions #109

Merged
merged 1 commit into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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