Fix GCC std flag #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Lint on Multiple Platforms | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@nightly | |
- run: rustup component add clippy | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
# To only cache runs from `master`: | |
save-if: ${{ github.ref == 'refs/heads/master' }} | |
- uses: Jimver/[email protected] | |
id: cuda-toolkit | |
with: | |
cuda: '12.4.1' | |
method: 'network' | |
sub-packages: '[ "nvcc", "cudart", "nvrtc" ]' | |
if: matrix.os != 'macOS-latest' | |
- name: Clippy Check | |
run: cargo clippy -- -D warnings | |
continue-on-error: true | |
- name: Build | |
run: cargo build |