2024-06-02 16:18:21 +02:00
|
|
|
on: [push]
|
|
|
|
jobs:
|
2024-11-23 13:00:57 +01:00
|
|
|
build:
|
2024-06-02 16:18:21 +02:00
|
|
|
runs-on: nixos
|
|
|
|
steps:
|
2024-09-30 16:14:02 +02:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@v4
|
2025-01-23 22:29:39 +01:00
|
|
|
- name: Build Package
|
|
|
|
run: |
|
|
|
|
nix --version
|
|
|
|
nix build --print-build-logs .#
|
2024-11-23 13:00:57 +01:00
|
|
|
check:
|
|
|
|
needs: build # we use the built binaries in the checks
|
2024-06-02 16:18:21 +02:00
|
|
|
runs-on: nixos
|
2025-01-23 22:29:39 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
check:
|
|
|
|
- treefmt
|
|
|
|
- clippy
|
|
|
|
- nextest
|
|
|
|
- module-ipv4-test
|
|
|
|
- module-ipv6-test
|
|
|
|
- module-nginx-test
|
2024-06-02 16:18:21 +02:00
|
|
|
steps:
|
2024-09-30 16:14:02 +02:00
|
|
|
- uses: https://git.salame.cl/actions/checkout@v4
|
2025-01-23 22:29:39 +01:00
|
|
|
- name: Check
|
|
|
|
run: |
|
|
|
|
set -x
|
|
|
|
nix --version
|
|
|
|
# shellcheck disable=SC2016
|
|
|
|
nix build --print-build-logs '.#checks.x86_64-linux.${{ matrix.check }}'
|
2024-12-22 00:40:18 +01:00
|
|
|
report-size:
|
|
|
|
runs-on: nixos
|
|
|
|
needs: build
|
|
|
|
steps:
|
|
|
|
- uses: https://git.salame.cl/actions/checkout@v4
|
|
|
|
- run: nix --version
|
|
|
|
- name: Generate size report
|
|
|
|
uses: https://git.salame.cl/jalil/nix-flake-outputs-size@main
|
|
|
|
with:
|
|
|
|
comment-on-pr: ${{ github.ref_name != 'main' }}
|
|
|
|
generate-artifact: ${{ github.ref_name == 'main' }}
|
|
|
|
do-comparison: true
|
|
|
|
job-name: report-size
|