mirror of
https://github.com/daylinmorgan/oizys.git
synced 2025-01-05 03:50:44 -06:00
update gha setup
This commit is contained in:
parent
aebdd1f765
commit
a71feaeeae
3 changed files with 5 additions and 76 deletions
51
.github/actions/nix/action.yml
vendored
51
.github/actions/nix/action.yml
vendored
|
@ -9,18 +9,6 @@ inputs:
|
||||||
experimental-features = pipe-operator
|
experimental-features = pipe-operator
|
||||||
keep-derivations = true
|
keep-derivations = true
|
||||||
keep-outputs = true
|
keep-outputs = true
|
||||||
# key:
|
|
||||||
# description: Key to actions/cache
|
|
||||||
# default: nix
|
|
||||||
# install_action:
|
|
||||||
# description: Set `nixbuild` to use nixbuild/nix-quick-install-action, otherwide use cachix/install-nix-action
|
|
||||||
# default: nixbuild
|
|
||||||
# use_nixpkgs_in_flake:
|
|
||||||
# description: Use nixpkgs defined in flake.nix
|
|
||||||
# default: true
|
|
||||||
# nixpkgs_url:
|
|
||||||
# description: Nixpkgs URL
|
|
||||||
# default: https://nixos.org/channels/nixos-24.05
|
|
||||||
clean:
|
clean:
|
||||||
description: Clean up disk space
|
description: Clean up disk space
|
||||||
default: false
|
default: false
|
||||||
|
@ -29,12 +17,7 @@ inputs:
|
||||||
default: false
|
default: false
|
||||||
attic_token:
|
attic_token:
|
||||||
description: token to access attic cache
|
description: token to access attic cache
|
||||||
# debug:
|
|
||||||
# description: Enable debug
|
|
||||||
# default: false
|
|
||||||
# debug_token:
|
|
||||||
# default: ${{ github.token }}
|
|
||||||
# description: Set github token for gh cli
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
|
@ -54,35 +37,3 @@ runs:
|
||||||
run: |
|
run: |
|
||||||
nix profile install "nixpkgs#attic-client"
|
nix profile install "nixpkgs#attic-client"
|
||||||
attic login oizys https://attic.dayl.in "${{ inputs.attic_token}}"
|
attic login oizys https://attic.dayl.in "${{ inputs.attic_token}}"
|
||||||
|
|
||||||
# - name: Nix restore pre
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# CACHE_KEY: ${{ inputs.key }}
|
|
||||||
# run: exec ${{ github.action_path }}/restore.sh pre
|
|
||||||
# - uses: actions/cache/restore@v4
|
|
||||||
# with:
|
|
||||||
# key: ${{ env.CACHE_KEY }}-${{ runner.os }}-${{ runner.arch }}-${{ env.CACHE_TIMESTAMP }}
|
|
||||||
# restore-keys: |
|
|
||||||
# ${{ env.CACHE_KEY }}-${{ runner.os }}-${{ runner.arch }}
|
|
||||||
# path: |
|
|
||||||
# /nix/store
|
|
||||||
# /nix/var/nix/db
|
|
||||||
# /nix/var/nix/gcroots
|
|
||||||
# /nix/var/nix/profiles
|
|
||||||
# ~/.cache/nix
|
|
||||||
# ~/.local/state/nix
|
|
||||||
# ~/.nix-channels
|
|
||||||
# ~/.nix-defexpr
|
|
||||||
# - name: Nix restore post
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# USE_NIXPKGS_IN_FLAKE: ${{ inputs.use_nixpkgs_in_flake }}
|
|
||||||
# NIXPKGS_URL: ${{ inputs.nixpkgs_url }}
|
|
||||||
# run: exec ${{ github.action_path }}/restore.sh post
|
|
||||||
# - name: Debug
|
|
||||||
# if: ${{ inputs.debug == true || inputs.debug == 'true' || inputs.debug == 'nopause' }}
|
|
||||||
# shell: bash
|
|
||||||
# env:
|
|
||||||
# GH_TOKEN: ${{ inputs.debug_token }}
|
|
||||||
# run: exec ${{ github.action_path }}/debug.sh "${{ inputs.debug }}"
|
|
||||||
|
|
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
|
@ -1,13 +1,12 @@
|
||||||
name: Build NixOS (on demand)
|
name: Build NixOS (on demand)
|
||||||
|
|
||||||
# TODO: accept , style sep in hwylcli
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
inputs:
|
inputs:
|
||||||
hosts:
|
hosts:
|
||||||
description: 'list of hosts to build'
|
description: 'list of hosts to build'
|
||||||
required: true
|
required: true
|
||||||
default: ',othalan,algiz'
|
default: 'othalan,algiz'
|
||||||
type: string
|
type: string
|
||||||
lockFile:
|
lockFile:
|
||||||
description: 'flake.lock file'
|
description: 'flake.lock file'
|
||||||
|
@ -20,9 +19,9 @@ on:
|
||||||
default: ',othalan,algiz'
|
default: ',othalan,algiz'
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
# concurrency:
|
concurrency:
|
||||||
# group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
|
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.host }}
|
||||||
# cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
@ -31,13 +30,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# needed to access ghostty repo for now
|
|
||||||
- name: Setup SSH
|
|
||||||
uses: MrSquaare/ssh-setup-action@v3
|
|
||||||
with:
|
|
||||||
host: github.com
|
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/nix
|
||||||
with:
|
with:
|
||||||
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
attic_token: ${{ secrets.ATTIC_TOKEN }}
|
||||||
|
|
14
.github/workflows/update.yml
vendored
14
.github/workflows/update.yml
vendored
|
@ -30,13 +30,6 @@ jobs:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# needed to access ghostty repo for now
|
|
||||||
- name: Setup SSH
|
|
||||||
uses: MrSquaare/ssh-setup-action@v3
|
|
||||||
with:
|
|
||||||
host: github.com
|
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
- uses: daylin-bot/actions/setup@main
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/nix
|
||||||
with:
|
with:
|
||||||
|
@ -82,13 +75,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
# needed to access ghostty repo for now
|
|
||||||
- name: Setup SSH
|
|
||||||
uses: MrSquaare/ssh-setup-action@v3
|
|
||||||
with:
|
|
||||||
host: github.com
|
|
||||||
private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- uses: daylin-bot/actions/setup@main
|
- uses: daylin-bot/actions/setup@main
|
||||||
- uses: ./.github/actions/nix
|
- uses: ./.github/actions/nix
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in a new issue