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:
parent
4647ec5c59
commit
e61c13e71c
2 changed files with 6 additions and 15 deletions
10
.github/workflows/pr.yaml
vendored
10
.github/workflows/pr.yaml
vendored
|
@ -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 \
|
||||
|
|
11
.github/workflows/release.yaml
vendored
11
.github/workflows/release.yaml
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue