修复在AMD cpu上进行实验遇到的小问题 #40
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: CI | |
on: [push, pull_request] | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
override: true | |
components: rustfmt | |
- name: Check code format | |
run: cargo fmt -- --check | |
clippy: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
vendor: [intel, amd] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: rust-src, clippy | |
- name: Clippy | |
run: make clippy VENDOR=${{ matrix.vendor }} | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
vendor: [intel, amd] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: rust-src, llvm-tools-preview | |
- name: Build | |
run: make VENDOR=${{ matrix.vendor }} | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
vendor: [intel, amd] | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
components: rust-src | |
- name: Unit Test | |
run: make test VENDOR=${{ matrix.vendor }} |