1
Fork 0
mirror of https://github.com/RGBCube/alejandra synced 2025-07-31 12:37:45 +00:00

feat: push to cachix

This commit is contained in:
Kevin Amado 2022-02-07 23:30:05 -05:00
parent 4647ec5c59
commit e61c13e71c
No known key found for this signature in database
GPG key ID: FFF341057F503148
2 changed files with 6 additions and 15 deletions

View file

@ -4,9 +4,6 @@ on:
branches: [ main ]
push:
branches: [ main ]
concurrency:
cancel-in-progress: true
group: ${{ github.actor }}
jobs:
pr:
name: PR
@ -15,10 +12,6 @@ jobs:
- name: Clone
uses: actions/checkout@v2
- uses: cachix/cachix-action@v10
with:
name: alejandra
- name: Build
uses: docker://nixos/nix
with:
@ -27,6 +20,7 @@ jobs:
--extra-experimental-features flakes
--extra-experimental-features nix-command
--extra-substituters http://172.17.0.1:5000?trusted=1
--extra-substituters https://alejandra.cachix.org?trusted=1
build
--print-build-logs
@ -38,6 +32,7 @@ jobs:
--extra-experimental-features flakes
--extra-experimental-features nix-command
--extra-substituters http://172.17.0.1:5000?trusted=1
--extra-substituters https://alejandra.cachix.org?trusted=1
flake
check
--print-build-logs
@ -53,6 +48,7 @@ jobs:
# --extra-experimental-features flakes \
# --extra-experimental-features nix-command \
# --extra-substituters http://172.17.0.1:5000?trusted=1 \
# --extra-substituters https://alejandra.cachix.org?trusted=1 \
# print-dev-env \
# --no-update-lock-file \
# --no-write-lock-file \

View file

@ -2,22 +2,16 @@ name: Release
on:
push:
branches: [ main ]
concurrency:
cancel-in-progress: true
group: ${{ github.actor }}
jobs:
release:
environment:
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
name: Release
runs-on: self-hosted
steps:
- name: Clone
uses: actions/checkout@v2
- uses: cachix/cachix-action@v10
with:
name: alejandra
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
- name: Build
uses: docker://nixos/nix
with:
@ -27,6 +21,7 @@ jobs:
--extra-experimental-features flakes
--extra-experimental-features nix-command
--extra-substituters http://172.17.0.1:5000?trusted=1
--extra-substituters https://alejandra.cachix.org?trusted=1
build
--print-build-logs