mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2024-11-08 04:25:59 +01:00
CI: init
This commit is contained in:
parent
3b12ef896f
commit
f14cb7635a
3 changed files with 56 additions and 0 deletions
21
.github/workflows/nix-build.yml
vendored
Normal file
21
.github/workflows/nix-build.yml
vendored
Normal 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
7
.github/workflows/nix-ci.yml
vendored
Normal 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
28
.github/workflows/nix-update-inputs.yml
vendored
Normal 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
|
Loading…
Reference in a new issue