mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2025-04-20 09:30:15 +03:00
Compare commits
4 commits
91686bf936
...
cd059cf0c5
Author | SHA1 | Date | |
---|---|---|---|
![]() |
cd059cf0c5 | ||
![]() |
a110fcd4f6 | ||
![]() |
b383d26223 | ||
![]() |
578aef2674 |
6 changed files with 8 additions and 30 deletions
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix/build:
|
nix/build:
|
||||||
runs-on: nixos-flakes
|
runs-on: nixos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix/develop:
|
nix/develop:
|
||||||
runs-on: nixos-flakes
|
runs-on: nixos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
|
@ -10,7 +10,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
nix/shell:
|
nix/shell:
|
||||||
runs-on: nixos-flakes
|
runs-on: nixos-latest
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
@ -23,19 +23,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
hello
|
hello
|
||||||
|
|
||||||
- name: ensure we're not in a dev environment
|
|
||||||
uses: ./shell
|
|
||||||
with:
|
|
||||||
flake: ./shell/test
|
|
||||||
package: "hello"
|
|
||||||
run: |
|
|
||||||
set -x
|
|
||||||
|
|
||||||
# if we have gcc installed, we're in a dev environment.
|
|
||||||
# we don't want to be in a dev environment
|
|
||||||
type -p gcc >/dev/null && exit 1
|
|
||||||
hello
|
|
||||||
|
|
||||||
- name: no commands should still work
|
- name: no commands should still work
|
||||||
uses: ./shell
|
uses: ./shell
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -1,13 +0,0 @@
|
||||||
---
|
|
||||||
name: Nothing.
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
nothing:
|
|
||||||
runs-on: nixos-flakes
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: no-op
|
|
||||||
run: echo "This is only here to make Ironforge happy."
|
|
|
@ -9,7 +9,7 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
shellcheck:
|
shellcheck:
|
||||||
runs-on: nixos-flakes
|
runs-on: nixos-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
|
|
|
@ -8,5 +8,9 @@ case "${INPUT_LOGS}" in
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
exec 2>&1
|
||||||
|
|
||||||
|
echo "##[group]Building ${INPUT_PACKAGE}"
|
||||||
nix build ${LOGS} --out-link "${INPUT_OUT_LINK}" "${INPUT_FLAKE}#${INPUT_PACKAGE}"
|
nix build ${LOGS} --out-link "${INPUT_OUT_LINK}" "${INPUT_FLAKE}#${INPUT_PACKAGE}"
|
||||||
echo "output-path=$(readlink "${INPUT_OUT_LINK}")" >>"${GITHUB_OUTPUT}"
|
echo "output-path=$(readlink "${INPUT_OUT_LINK}")" >>"${GITHUB_OUTPUT}"
|
||||||
|
echo "##[endgroup]"
|
||||||
|
|
Loading…
Reference in a new issue