diff options
author | 2021-02-21 13:46:17 +0100 | |
---|---|---|
committer | 2021-02-25 16:04:01 -0800 | |
commit | 5331eb86927a68099e2fad02ce949b596a547af6 (patch) | |
tree | 4eda9855a1a0bd927e86d26bd183c67089d05e8f | |
parent | 25649ce4dd9d32de40214df3acd933994a427c8a (diff) | |
download | rust-x86-5331eb86927a68099e2fad02ce949b596a547af6.tar.gz rust-x86-5331eb86927a68099e2fad02ce949b596a547af6.tar.zst rust-x86-5331eb86927a68099e2fad02ce949b596a547af6.zip |
Use GitHub Actions to build and test
This commit enables GitHub Actions to build both the standard
feature set and all features. The tests are only run for the standard
feature set and the performance-counter feature, as all features
currently fail with an error message.
-rw-r--r-- | .github/workflows/standard.yml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/.github/workflows/standard.yml b/.github/workflows/standard.yml new file mode 100644 index 0000000..3a2c4aa --- /dev/null +++ b/.github/workflows/standard.yml @@ -0,0 +1,51 @@ +name: Standard checks + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + ci: + runs-on: ubuntu-latest + strategy: + matrix: + rust: +# - stable +# - beta + - nightly +# - 1.31.0 # MSRV + + steps: + - uses: actions/checkout@v2 + + - uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: ${{ matrix.rust }} + override: true + components: rustfmt + + - uses: actions-rs/cargo@v1 + with: + command: build + + - uses: actions-rs/cargo@v1 + with: + command: build + args: --all-features + + - uses: actions-rs/cargo@v1 + with: + command: test + + - uses: actions-rs/cargo@v1 + with: + command: test + args: --features performance-counter #--all-features will currently fail + + - uses: actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check |