Skip to content

Merge pull request #25 from TimB87/dependabot/cargo/once_cell-1.20.2 #61

Merge pull request #25 from TimB87/dependabot/cargo/once_cell-1.20.2

Merge pull request #25 from TimB87/dependabot/cargo/once_cell-1.20.2 #61

Workflow file for this run

---
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 }}