mirror of
https://github.com/daylinmorgan/oizys.git
synced 2024-12-21 17:40: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 }}
|
||||
|
||||
- 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
|
||||
|
||||
- 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
|
||||
run: |
|
||||
nix flake update --commit-lock-file
|
||||
|
@ -69,8 +54,6 @@ jobs:
|
|||
--host "othalan"
|
||||
--flake .
|
||||
--debug
|
||||
# --
|
||||
# --print-build-logs
|
||||
|
||||
- name: Commit Updates
|
||||
uses: daylin-bot/actions/commit-and-push@main
|
||||
|
@ -101,21 +84,16 @@ jobs:
|
|||
host: github.com
|
||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
|
||||
- uses: DeterminateSystems/nix-installer-action@v15
|
||||
- uses: daylin-bot/actions/setup@main
|
||||
- uses: ./.github/actions/nix
|
||||
with:
|
||||
source-url: https://install.lix.systems/lix/lix-installer-x86_64-linux
|
||||
extra-conf: |
|
||||
experimental-features = pipe-operator
|
||||
accept-flake-config = true
|
||||
|
||||
- uses: ./.github/actions/clean-disk
|
||||
with:
|
||||
purge-packages: 'true'
|
||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||
clean: true
|
||||
btrfs: true
|
||||
|
||||
- name: Pre-build oizys
|
||||
run: nix build .
|
||||
|
||||
|
||||
- name: Build
|
||||
run: >
|
||||
nix run .
|
||||
|
@ -126,7 +104,6 @@ jobs:
|
|||
--debug
|
||||
--
|
||||
--keep-going
|
||||
# --print-build-logs
|
||||
--out-link current
|
||||
|
||||
- run: git checkout flake-lock
|
||||
|
|
Loading…
Reference in a new issue