mirror of
https://github.com/HendrikRauh/dmx-interface.git
synced 2026-03-09 05:20:21 +00:00
refactor(action): update description and improve step names in install-nix action
This commit is contained in:
parent
198c835c50
commit
e576348974
2 changed files with 11 additions and 22 deletions
21
.github/actions/install-nix/action.yml
vendored
21
.github/actions/install-nix/action.yml
vendored
|
|
@ -1,27 +1,16 @@
|
||||||
name: install-nix
|
name: install-nix
|
||||||
description: Composite action to checkout the repo and install Nix with flakes enabled
|
description: Install Nix with flakes enabled and pre-warm the repository's flake devShell
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
- name: Install Nix
|
- name: Install Nix (with flakes)
|
||||||
uses: cachix/install-nix-action@v31
|
uses: cachix/install-nix-action@v31
|
||||||
with:
|
with:
|
||||||
extra_nix_config: |
|
extra_nix_config: |
|
||||||
experimental-features = nix-command flakes
|
experimental-features = nix-command flakes
|
||||||
- name: Prewarm flake devShell
|
- name: Pre-warm flake devShell
|
||||||
run: |
|
run: |
|
||||||
# use the flake devShell defined in ./flake.nix to fetch deps
|
# Use the repository's `flake.nix` devShell to fetch dependencies.
|
||||||
nix develop --command true
|
# This speeds up later `nix develop` invocations in workflow steps.
|
||||||
shell: bash
|
|
||||||
|
|
||||||
- name: Install Nix
|
|
||||||
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
|
nix develop --command true
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
12
.github/workflows/check.yml
vendored
12
.github/workflows/check.yml
vendored
|
|
@ -11,29 +11,29 @@ jobs:
|
||||||
lint:
|
lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup checkout + Nix
|
- name: Install Nix and pre-warm flake devShell
|
||||||
uses: ./.github/actions/install-nix
|
uses: ./.github/actions/install-nix
|
||||||
|
|
||||||
- name: Run pre-commit from flake devShell
|
- name: Run pre-commit from flake devShell
|
||||||
run: |
|
run: |
|
||||||
# use the flake devShell defined in ./flake.nix (x86_64 runner)
|
# Use the flake devShell defined in ./flake.nix (x86_64 runner)
|
||||||
nix develop --command pre-commit run --all-files
|
nix develop --command pre-commit run --all-files
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v5
|
uses: actions/checkout@v5
|
||||||
|
|
||||||
- name: Setup checkout + Nix
|
- name: Install Nix and pre-warm flake devShell
|
||||||
uses: ./.github/actions/install-nix
|
uses: ./.github/actions/install-nix
|
||||||
|
|
||||||
- name: Run build from flake devShell
|
- name: Run build from flake devShell
|
||||||
run: |
|
run: |
|
||||||
# use the flake devShell defined in ./flake.nix (x86_64 runner)
|
# Use the flake devShell defined in ./flake.nix (x86_64 runner)
|
||||||
nix develop --command invoke build
|
nix develop --command invoke build
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue