configuration.nix/.forgejo/workflows/check.yml

40 lines
1.1 KiB
YAML
Raw Normal View History

2024-07-20 15:40:11 +02:00
on:
push:
schedule:
- cron: '12 5 * * *'
2024-06-08 22:28:27 +02:00
jobs:
check:
runs-on: nixos
steps:
2024-07-20 15:40:11 +02:00
- uses: "https://code.forgejo.org/actions/checkout@v4"
2024-06-08 22:28:27 +02:00
- run: nix --version
- run: nix flake check --keep-going --verbose
2024-06-08 22:28:27 +02:00
build:
runs-on: nixos
strategy:
matrix:
2024-06-08 22:41:09 +02:00
target:
2024-07-20 15:40:11 +02:00
- audiomenu
2024-06-08 22:41:09 +02:00
- docs
2024-07-20 15:40:11 +02:00
- jpassmenu
2024-06-08 22:41:09 +02:00
- nixosConfigurations.vm.config.system.build.toplevel
2024-07-20 15:40:11 +02:00
- nvim
2024-06-08 22:28:27 +02:00
steps:
2024-07-20 15:40:11 +02:00
- uses: "https://code.forgejo.org/actions/checkout@v4"
2024-06-08 22:28:27 +02:00
- run: nix --version
2024-06-08 22:41:09 +02:00
- run: nix build --print-build-logs '.#${{ matrix.target }}'
2024-07-20 15:40:11 +02:00
update-lockfile:
needs: [check build]
runs-on: nixos
if: github.event_name == 'schedule'
steps:
- uses: "https://code.forgejo.org/actions/checkout@v4"
- run: nix --version
- name: nix flake update
run: |
git config user.name 'forgejo-actions'
git config user.email 'forgejo-actions@noreply.salame.cl'
2024-07-20 16:15:35 +02:00
nix flake update --commit-lock-file --option commit-lockfile-summary '[chore] flake.lock: update inputs'
2024-07-21 16:26:55 +02:00
nix flake check --keep-going --verbose
git push