devicemapper nightly #1253
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 nightly | |
# yamllint disable-line rule:truthy | |
on: | |
schedule: | |
- cron: 0 3 * * * | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
allowed_failures: | |
continue-on-error: true | |
strategy: | |
matrix: | |
include: | |
- components: cargo | |
toolchain: 1.80.1 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
task: make -f Makefile audit | |
# Allowed because a failure may occur after a new Rust stable | |
# version is released. | |
- components: clippy | |
toolchain: stable | |
task: make -f Makefile clippy | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
components: ${{ matrix.components }} | |
toolchain: ${{ matrix.toolchain }} | |
- name: Install dependencies | |
run: | | |
sudo apt-get -q update | |
sudo apt-get -y install libdevmapper-dev | |
- uses: baptiste0928/cargo-install@v3 | |
with: | |
crate: cargo-audit | |
- name: Test ${{ matrix.task }} on ${{ matrix.toolchain }} toolchain | |
run: ${{ matrix.task }} | |
checks-with-ci-repo: | |
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 | |
clang | |
curl | |
git | |
make | |
openssl-devel | |
python-requests | |
python-semantic_version | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
components: cargo | |
toolchain: 1.80.1 # CURRENT DEVELOPMENT RUST TOOLCHAIN | |
- name: Check out ci repo | |
run: git clone https://github.com/stratis-storage/ci.git | |
- name: Run comparisons of version specs with available Fedora packages | |
# yamllint disable rule:line-length | |
run: | | |
# -sys | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../devicemapper-rs-sys/Cargo.toml FEDORA_RELEASE=rawhide make -f ../../Makefile check-fedora-versions | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../devicemapper-rs-sys/Cargo.toml FEDORA_RELEASE=f40 make -f ../../Makefile check-fedora-versions | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../devicemapper-rs-sys/Cargo.toml FEDORA_RELEASE=f39 make -f ../../Makefile check-fedora-versions | |
# main | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=rawhide make -f ../../Makefile check-fedora-versions | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=f40 make -f ../../Makefile check-fedora-versions | |
COMPARE_FEDORA_VERSIONS=./compare_fedora_versions MANIFEST_PATH=../../Cargo.toml FEDORA_RELEASE=f39 make -f ../../Makefile check-fedora-versions | |
working-directory: ./ci/dependency_management |