CI: init
This commit is contained in:
parent
3b12ef896f
commit
f14cb7635a
|
@ -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
|
|
@ -0,0 +1,7 @@
|
||||||
|
name: Nix
|
||||||
|
|
||||||
|
on: [push, pull_request, workflow_dispatch]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
uses: ./.github/workflows/nix-build.yml
|
|
@ -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
|
Loading…
Reference in New Issue