mirror of
https://github.com/NotAShelf/nyxexprs.git
synced 2024-11-22 13:20:44 +00:00
CI: build & cache
This commit is contained in:
parent
58064e5e72
commit
0eef5abf3f
3 changed files with 78 additions and 0 deletions
23
.github/workflows/build.yml
vendored
Normal file
23
.github/workflows/build.yml
vendored
Normal file
|
@ -0,0 +1,23 @@
|
|||
name: Build
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
secrets:
|
||||
CACHIX_AUTH_TOKEN:
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
build:
|
||||
strategy:
|
||||
matrix:
|
||||
package:
|
||||
- foot-transparent
|
||||
- cloneit
|
||||
- mov-cli
|
||||
- rat
|
||||
- ani-cli
|
||||
|
||||
uses: ./.github/workflows/nix.yml
|
||||
with:
|
||||
command: nix build -L .#${{ matrix.package }}
|
||||
secrets: inherit
|
24
.github/workflows/nix.yml
vendored
Normal file
24
.github/workflows/nix.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: Nix
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
command:
|
||||
required: true
|
||||
type: string
|
||||
secrets:
|
||||
CACHIX_AUTH_TOKEN:
|
||||
required: false
|
||||
|
||||
jobs:
|
||||
nix:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
- uses: DeterminateSystems/magic-nix-cache-action@main
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: nix-gaming
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
- run: ${{ inputs.command }}
|
31
.github/workflows/update-flake.yml
vendored
Normal file
31
.github/workflows/update-flake.yml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: Update flake
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: "0 0 * * 0" # weekly
|
||||
|
||||
jobs:
|
||||
update:
|
||||
if: github.repository == 'notashelf/nyxpkgs'
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@main
|
||||
|
||||
- uses: cachix/cachix-action@v12
|
||||
with:
|
||||
name: nix-gaming
|
||||
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
||||
|
||||
- run: nix flake update
|
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4
|
||||
with:
|
||||
commit_message: "Update flake"
|
||||
|
||||
build:
|
||||
needs: update
|
||||
uses: ./.github/workflows/build.yml
|
||||
secrets: inherit
|
Loading…
Reference in a new issue