Fix some warnings, and make some more stuff work (#44) #312
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 | |
on: | |
push: | |
branches: | |
- "*" | |
pull_request: | |
jobs: | |
linux: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: | |
- 1.80.0 | |
- stable | |
- beta | |
- nightly | |
target: | |
- x86_64-unknown-linux-gnu | |
- x86_64-unknown-linux-musl | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.version }} | |
override: true | |
components: rustfmt, llvm-tools-preview | |
- name: build | |
run: | | |
cargo check --no-default-features | |
cargo check --all-features | |
- name: test | |
run: | | |
cargo install cargo-binutils | |
cargo test | |
- name: check formatting | |
run: cargo fmt -- --check | |
windows: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
version: | |
- stable | |
target: | |
- x86_64-pc-windows-gnu | |
- x86_64-pc-windows-msvc | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.version }} | |
override: true | |
components: llvm-tools-preview | |
- name: test | |
run: | | |
cargo install cargo-binutils | |
cargo test | |
mac: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
version: | |
- nightly | |
target: | |
- x86_64-apple-darwin | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.version }} | |
override: true | |
components: llvm-tools-preview | |
- name: test | |
run: | | |
cargo install cargo-binutils | |
cargo test |