Skip to content

chore: upgrade nix

chore: upgrade nix #50

Workflow file for this run

name: CI
on:
pull_request:
branches:
- master
push:
branches:
- master
env:
RUSTFLAGS: -Dwarnings
jobs:
build_and_test:
name: Build and test
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
rust: [nightly, beta, stable]
steps:
- uses: actions/checkout@v4
- name: Install ${{ matrix.rust }}
run: rustup install ${{ matrix.rust }}
- name: Install Ceph
run: |
sudo apt-get update
sudo apt-get install -y apt-transport-https
wget -q -O- 'https://download.ceph.com/keys/release.asc' | sudo apt-key add -
echo "deb https://download.ceph.com/debian-octopus/ focal main" | sudo tee /etc/apt/sources.list.d/ceph.list
sudo apt-get update -y
sudo apt-get install -y --no-install-recommends uuid-runtime ceph-mgr ceph-mon ceph-osd ceph-mds librados-dev libradosstriper-dev
- name: check
run: cargo check --all-targets
- name: check rados_striper
run: cargo check --features rados_striper --all-targets
- name: tests
run: cargo test --all-targets
cross:
name: Cross compile
runs-on: ubuntu-latest
strategy:
matrix:
target:
- i686-unknown-linux-gnu
- armv7-unknown-linux-gnueabihf
- aarch64-unknown-linux-gnu
steps:
- uses: actions/checkout@v4
- name: Install nightly
run: rustup install nightly
- name: Install cross
run: cargo install cross
- name: check
run: cross check --all --target ${{ matrix.target }}
check_fmt_and_docs:
name: Checking fmt and docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: fmt
run: cargo fmt --all -- --check