Merge pull request #6 from TimB87/dependabot/cargo/serde-1.0.198 #26
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: Cargo Build & Test | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: ["master"] | |
pull_request: | |
branches: ["master"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_and_test: | |
name: Rust project - latest | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
toolchain: | |
- stable | |
- beta | |
- nightly | |
target: | |
- x86_64-unknown-linux-gnu | |
#- aarch64-unknown-linux-gnu | |
#- x86_64-apple-darwin | |
#- armv7-unknown-linux-gnueabihf | |
#- arm-unknown-linux-gnueabihf | |
#- arm-unknown-linux-gnueabi | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Install toolchain | |
run: | | |
rustup update ${{ matrix.toolchain }} && \ | |
rustup default ${{ matrix.toolchain }} && \ | |
rustup target add ${{ matrix.target }} --toolchain ${{ matrix.toolchain }} | |
- name: Install libnotify | |
run: | | |
sudo apt-get update | |
sudo apt-get install libnotify-dev | |
- name: Use cache | |
uses: Swatinem/rust-cache@v2 | |
- name: Build with ${{ matrix.toolchain }} for ${{ matrix.toolchain }} | |
run: cargo build --verbose --target ${{ matrix.target }} | |
# there are no tests | |
#- name: Check with ${{ matrix.toolchain }} | |
# run: cargo check --verbose | |
#- name: Compile | |
# uses: rust-build/[email protected] | |
# with: | |
# RUSTTARGET: ${{ matrix.target }} |