This commit is contained in:
parent
55c0a8de44
commit
1a487d365e
2 changed files with 57 additions and 0 deletions
26
.forgejo/workflows/cachix.yaml
Normal file
26
.forgejo/workflows/cachix.yaml
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
name: Cachix
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: apt install -y sudo
|
||||||
|
- uses: https://github.com/cachix/install-nix-action@v30
|
||||||
|
with:
|
||||||
|
enable_kvm: false
|
||||||
|
github_access_token: '${{ secrets.ACCESS_TOKEN_GITHUB }}'
|
||||||
|
- name: Cachix
|
||||||
|
uses: https://github.com/cachix/cachix-action@v15
|
||||||
|
with:
|
||||||
|
name: chvp
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
skipPush: true
|
||||||
|
- run: nix build -L --no-link .#packages.x86_64-linux.default
|
||||||
|
- run: nix build -L --no-link .#devShells.x86_64-linux.default
|
||||||
|
- run: nix eval --json ".#packages.x86_64-linux.default.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp
|
||||||
|
- run: nix eval --json ".#devShells.x86_64-linux.default.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp
|
31
.forgejo/workflows/update.yaml
Normal file
31
.forgejo/workflows/update.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: Update
|
||||||
|
|
||||||
|
on:
|
||||||
|
schedule:
|
||||||
|
- cron: '28 * * * *'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
update:
|
||||||
|
runs-on: docker
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: apt install -y sudo
|
||||||
|
- uses: https://github.com/cachix/install-nix-action@v30
|
||||||
|
with:
|
||||||
|
enable_kvm: false
|
||||||
|
github_access_token: '${{ secrets.ACCESS_TOKEN_GITHUB }}'
|
||||||
|
- name: Cachix
|
||||||
|
uses: https://github.com/cachix/cachix-action@v15
|
||||||
|
with:
|
||||||
|
name: chvp
|
||||||
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
|
skipPush: true
|
||||||
|
- run: nix flake update
|
||||||
|
- run: nix build -L --no-link .#packages.x86_64-linux.default
|
||||||
|
- run: nix build -L --no-link .#devShells.x86_64-linux.default
|
||||||
|
- run: nix eval --json ".#packages.x86_64-linux.default.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp
|
||||||
|
- run: nix eval --json ".#devShells.x86_64-linux.default.outPath" | sed 's/"\(.*\)"/\1/' | cachix push chvp
|
||||||
|
- uses: https://github.com/stefanzweifel/git-auto-commit-action@v5.0.1
|
||||||
|
with:
|
||||||
|
commit_message: "Update dependencies"
|
Loading…
Add table
Add a link
Reference in a new issue