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
|
2024-06-16 22:05:56 +02:00
|
|
|
- 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
|
|
|
|
steps:
|
|
|
|
if: github.event_name == "schedule"
|
|
|
|
- uses: "https://code.forgejo.org/actions/checkout@v4"
|
|
|
|
- run: nix --version
|
|
|
|
- run: nix flake update
|
|
|
|
- name: nix flake update
|
|
|
|
run: |
|
|
|
|
git config user.name 'forgejo-actions'
|
|
|
|
git config user.email 'forgejo-actions@noreply.salame.cl'
|
|
|
|
nix flake update --commit-lock-file
|
|
|
|
- run: nix flake check --keep-going --verbose
|
|
|
|
- run: git push
|