Increase nix dependency lower bound to 0.29.0 #1048
Workflow file for this run
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: devicemapper CI | |
# yamllint disable-line rule:truthy | |
on: | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- 'CHANGES.txt' | |
- '**/README.md' | |
pull_request: | |
branches: | |
- master | |
paths-ignore: | |
- 'CHANGES.txt' | |
- '**/README.md' | |
workflow_dispatch: | |
jobs: | |
checks: | |
strategy: | |
matrix: | |
include: | |
- components: rustfmt | |
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile fmt-ci | |
- components: clippy | |
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile clippy | |
- components: cargo | |
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile build | |
- components: cargo | |
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile docs | |
- components: cargo | |
toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile check-typos | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
components: ${{ matrix.components }} | |
toolchain: ${{ matrix.toolchain }} | |
- uses: baptiste0928/cargo-install@v2 | |
with: | |
crate: typos-cli | |
- name: Install dependencies | |
run: | | |
sudo apt-get -q update | |
sudo apt-get -y install libdevmapper-dev | |
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain | |
run: ${{ matrix.task }} | |
tests-with-sudo: | |
strategy: | |
matrix: | |
include: | |
- toolchain: 1.71.1 # LOWEST SUPPORTED RUST TOOLCHAIN | |
- toolchain: 1.78.0 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
components: cargo | |
toolchain: ${{ matrix.toolchain }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get -q update | |
sudo apt-get -y install libdevmapper-dev | |
- name: Set toolchain override with sudo | |
run: sudo /home/runner/.cargo/bin/rustup override set ${{ matrix.toolchain }} # yamllint disable rule:line-length | |
- name: Run all tests on ${{ matrix.toolchain }} toolchain | |
run: sudo PATH=$GITHUB_WORKSPACE/.cargo/bin:$PATH make -f Makefile sudo_test # yamllint disable rule:line-length | |
# VERIFICATION OF TEST INFRASTRUCTURE | |
yamllint: | |
runs-on: ubuntu-20.04 | |
container: | |
image: fedora:40 # CURRENT DEVELOPMENT ENVIRONMENT | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install dependencies for Fedora | |
run: dnf install -y make yamllint | |
- name: Run yamllint | |
run: make -f Makefile yamllint |