chore(ci): Add Rust Unit Test code coverage #29
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: Nix | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
integration: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# aarch64-linux and friends require emulation, which is terribly slow. | |
# so slow, that the test doesn't pass. | |
# TODO: set up aarch64 worker? | |
system: [x86_64, i686] | |
check: [loop, tcp, rdma] | |
exclude: | |
# Failed to find module 'rdma_rxe' | |
- system: i686 | |
check: rdma | |
name: ${{ matrix.system }} - ${{ matrix.check }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup QEMU User and binfmt | |
uses: docker/setup-qemu-action@v3 | |
if: ${{ matrix.system != 'x86_64' && matrix.system != 'i686' }} | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra-conf: "extra-platforms = ${{ matrix.system }}-linux" | |
- name: Setup Magic Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Run Flake Check | |
run: nix build -L .#checks.${{ matrix.system }}-linux.${{ matrix.check }} |