This commit is contained in:
Mihai Fufezan 2023-12-29 00:00:11 +02:00
parent 3b12ef896f
commit f14cb7635a
No known key found for this signature in database
3 changed files with 56 additions and 0 deletions

21
.github/workflows/nix-build.yml vendored Normal file
View File

@ -0,0 +1,21 @@
on:
workflow_call:
jobs:
build:
strategy:
matrix:
package:
- borders-plus-plus
- csgo-vulkan-fix
- hyprbars
- hyprtrails
- hyprwinwrap
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- run: nix build .#${{ matrix.package }} -L

7
.github/workflows/nix-ci.yml vendored Normal file
View File

@ -0,0 +1,7 @@
name: Nix
on: [push, pull_request, workflow_dispatch]
jobs:
build:
uses: ./.github/workflows/nix-build.yml

28
.github/workflows/nix-update-inputs.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Nix
on:
schedule:
- cron: '0 0 * * *' # check daily
jobs:
update:
name: inputs
runs-on: ubuntu-latest
steps:
- name: Clone repository
uses: actions/checkout@v3
with:
token: ${{ secrets.PAT }}
- uses: DeterminateSystems/nix-installer-action@main
- name: Update inputs
run: nix flake update
- name: Commit
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: "[gha] Nix: update inputs"
update-build:
needs: update
uses: ./.github/workflows/nix-build.yml