mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-22 06:00:45 -06:00
use nix action on update
This commit is contained in:
parent
f16208b69e
commit
72a6de5f9f
1 changed files with 8 additions and 31 deletions
39
.github/workflows/update.yml
vendored
39
.github/workflows/update.yml
vendored
|
@ -28,27 +28,12 @@ jobs:
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
- uses: daylin-bot/actions/setup@main
|
||||||
- uses: ./.github/actions/clean-disk
|
- uses: ./.github/actions/nix
|
||||||
|
with:
|
||||||
|
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
||||||
- run: git checkout -B flake-lock
|
- run: git checkout -B flake-lock
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v15
|
|
||||||
with:
|
|
||||||
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
|
||||||
extra-conf: |
|
|
||||||
experimental-features = pipe-operator
|
|
||||||
accept-flake-config = true
|
|
||||||
|
|
||||||
- name: Install and login to attic cache
|
|
||||||
run: |
|
|
||||||
nix profile install "nixpkgs#attic-client"
|
|
||||||
attic login oizys https://attic.dayl.in "${{ secrets.ATTIC_TOKEN }}"
|
|
||||||
|
|
||||||
# - uses: cachix/cachix-action@v15
|
|
||||||
# with:
|
|
||||||
# name: daylin
|
|
||||||
# authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}"
|
|
||||||
|
|
||||||
- name: Update nix flake
|
- name: Update nix flake
|
||||||
run: |
|
run: |
|
||||||
nix flake update --commit-lock-file
|
nix flake update --commit-lock-file
|
||||||
|
@ -69,8 +54,6 @@ jobs:
|
||||||
--host "othalan"
|
--host "othalan"
|
||||||
--flake .
|
--flake .
|
||||||
--debug
|
--debug
|
||||||
# --
|
|
||||||
# --print-build-logs
|
|
||||||
|
|
||||||
- name: Commit Updates
|
- name: Commit Updates
|
||||||
uses: daylin-bot/actions/commit-and-push@main
|
uses: daylin-bot/actions/commit-and-push@main
|
||||||
|
@ -101,21 +84,16 @@ jobs:
|
||||||
host: github.com
|
host: github.com
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v15
|
- uses: daylin-bot/actions/setup@main
|
||||||
|
- uses: ./.github/actions/nix
|
||||||
with:
|
with:
|
||||||
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
extra-conf: |
|
clean: true
|
||||||
experimental-features = pipe-operator
|
btrfs: true
|
||||||
accept-flake-config = true
|
|
||||||
|
|
||||||
- uses: ./.github/actions/clean-disk
|
|
||||||
with:
|
|
||||||
purge-packages: 'true'
|
|
||||||
|
|
||||||
- name: Pre-build oizys
|
- name: Pre-build oizys
|
||||||
run: nix build .
|
run: nix build .
|
||||||
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: >
|
run: >
|
||||||
nix run .
|
nix run .
|
||||||
|
@ -126,7 +104,6 @@ jobs:
|
||||||
--debug
|
--debug
|
||||||
--
|
--
|
||||||
--keep-going
|
--keep-going
|
||||||
# --print-build-logs
|
|
||||||
--out-link current
|
--out-link current
|
||||||
|
|
||||||
- run: git checkout flake-lock
|
- run: git checkout flake-lock
|
||||||
|
|
Loading…
Reference in a new issue