mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 13:30:20 +00:00
fix(workflow): checkout before local action and remove nested checkout
Add top-level `actions/checkout` to jobs so local action files are available, and remove redundant checkout from `install-nix` composite action. Prewarm flake devShell remains in the action.
This commit is contained in:
parent
c362172cdb
commit
198c835c50
2 changed files with 16 additions and 2 deletions
12
.github/actions/install-nix/action.yml
vendored
12
.github/actions/install-nix/action.yml
vendored
|
|
@ -3,8 +3,16 @@ description: Composite action to checkout the repo and install Nix with flakes e
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Install Nix
|
||||||
uses: actions/checkout@v5
|
uses: cachix/install-nix-action@v31
|
||||||
|
with:
|
||||||
|
extra_nix_config: |
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
- name: Prewarm flake devShell
|
||||||
|
run: |
|
||||||
|
# use the flake devShell defined in ./flake.nix to fetch deps
|
||||||
|
nix develop --command true
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- name: Install Nix
|
- name: Install Nix
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
|
|
|
||||||
6
.github/workflows/check.yml
vendored
6
.github/workflows/check.yml
vendored
|
|
@ -11,6 +11,9 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup checkout + Nix
|
- name: Setup checkout + Nix
|
||||||
uses: ./.github/actions/install-nix
|
uses: ./.github/actions/install-nix
|
||||||
|
|
||||||
|
|
@ -23,6 +26,9 @@ jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup checkout + Nix
|
- name: Setup checkout + Nix
|
||||||
uses: ./.github/actions/install-nix
|
uses: ./.github/actions/install-nix
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue