mirror of
https://github.com/RGBCube/alejandra
synced 2025-08-01 04:57:44 +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 ]
|
branches: [ main ]
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
concurrency:
|
|
||||||
cancel-in-progress: true
|
|
||||||
group: ${{ github.actor }}
|
|
||||||
jobs:
|
jobs:
|
||||||
pr:
|
pr:
|
||||||
name: PR
|
name: PR
|
||||||
|
@ -15,10 +12,6 @@ jobs:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v10
|
|
||||||
with:
|
|
||||||
name: alejandra
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker://nixos/nix
|
uses: docker://nixos/nix
|
||||||
with:
|
with:
|
||||||
|
@ -27,6 +20,7 @@ jobs:
|
||||||
--extra-experimental-features flakes
|
--extra-experimental-features flakes
|
||||||
--extra-experimental-features nix-command
|
--extra-experimental-features nix-command
|
||||||
--extra-substituters http://172.17.0.1:5000?trusted=1
|
--extra-substituters http://172.17.0.1:5000?trusted=1
|
||||||
|
--extra-substituters https://alejandra.cachix.org?trusted=1
|
||||||
build
|
build
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
|
||||||
|
@ -38,6 +32,7 @@ jobs:
|
||||||
--extra-experimental-features flakes
|
--extra-experimental-features flakes
|
||||||
--extra-experimental-features nix-command
|
--extra-experimental-features nix-command
|
||||||
--extra-substituters http://172.17.0.1:5000?trusted=1
|
--extra-substituters http://172.17.0.1:5000?trusted=1
|
||||||
|
--extra-substituters https://alejandra.cachix.org?trusted=1
|
||||||
flake
|
flake
|
||||||
check
|
check
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
@ -53,6 +48,7 @@ jobs:
|
||||||
# --extra-experimental-features flakes \
|
# --extra-experimental-features flakes \
|
||||||
# --extra-experimental-features nix-command \
|
# --extra-experimental-features nix-command \
|
||||||
# --extra-substituters http://172.17.0.1:5000?trusted=1 \
|
# --extra-substituters http://172.17.0.1:5000?trusted=1 \
|
||||||
|
# --extra-substituters https://alejandra.cachix.org?trusted=1 \
|
||||||
# print-dev-env \
|
# print-dev-env \
|
||||||
# --no-update-lock-file \
|
# --no-update-lock-file \
|
||||||
# --no-write-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:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
concurrency:
|
|
||||||
cancel-in-progress: true
|
|
||||||
group: ${{ github.actor }}
|
|
||||||
jobs:
|
jobs:
|
||||||
release:
|
release:
|
||||||
|
environment:
|
||||||
|
CACHIX_AUTH_TOKEN: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
||||||
name: Release
|
name: Release
|
||||||
runs-on: self-hosted
|
runs-on: self-hosted
|
||||||
steps:
|
steps:
|
||||||
- name: Clone
|
- name: Clone
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v10
|
|
||||||
with:
|
|
||||||
name: alejandra
|
|
||||||
authToken: ${{ secrets.CACHIX_AUTH_TOKEN }}
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
uses: docker://nixos/nix
|
uses: docker://nixos/nix
|
||||||
with:
|
with:
|
||||||
|
@ -27,6 +21,7 @@ jobs:
|
||||||
--extra-experimental-features flakes
|
--extra-experimental-features flakes
|
||||||
--extra-experimental-features nix-command
|
--extra-experimental-features nix-command
|
||||||
--extra-substituters http://172.17.0.1:5000?trusted=1
|
--extra-substituters http://172.17.0.1:5000?trusted=1
|
||||||
|
--extra-substituters https://alejandra.cachix.org?trusted=1
|
||||||
build
|
build
|
||||||
--print-build-logs
|
--print-build-logs
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue