Compare commits

..

4 commits

Author SHA1 Message Date
Gergely Nagy
cd059cf0c5
nix-shell: Disable a failing test
Some checks are pending
test nix/build / nix/build (push) Waiting to run
test nix/develop / nix/develop (push) Waiting to run
test nix/shell / nix/shell (push) Waiting to run
Shellcheck / shellcheck (push) Waiting to run
This test is obsolete, the default environment includes gcc now.

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-04-19 13:50:39 +02:00
Gergely Nagy
a110fcd4f6
build: Try a different redirect
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-04-19 13:49:17 +02:00
Gergely Nagy
b383d26223
ci: workflow updates
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-04-19 13:45:46 +02:00
Gergely Nagy
578aef2674
nix/build: Add grouping, and redirect output to stdout
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2025-04-19 13:41:55 +02:00
6 changed files with 8 additions and 30 deletions

View file

@ -9,7 +9,7 @@ on:
jobs:
nix/build:
runs-on: nixos-flakes
runs-on: nixos-latest
steps:
- name: checkout
uses: actions/checkout@v3

View file

@ -9,7 +9,7 @@ on:
jobs:
nix/develop:
runs-on: nixos-flakes
runs-on: nixos-latest
steps:
- name: checkout
uses: actions/checkout@v3

View file

@ -10,7 +10,7 @@ on:
jobs:
nix/shell:
runs-on: nixos-flakes
runs-on: nixos-latest
steps:
- name: checkout
uses: actions/checkout@v3
@ -23,19 +23,6 @@ jobs:
run: |
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
uses: ./shell
with:

View file

@ -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."

View file

@ -9,7 +9,7 @@ on:
jobs:
shellcheck:
runs-on: nixos-flakes
runs-on: nixos-latest
steps:
- name: checkout

View file

@ -8,5 +8,9 @@ case "${INPUT_LOGS}" in
;;
esac
exec 2>&1
echo "##[group]Building ${INPUT_PACKAGE}"
nix build ${LOGS} --out-link "${INPUT_OUT_LINK}" "${INPUT_FLAKE}#${INPUT_PACKAGE}"
echo "output-path=$(readlink "${INPUT_OUT_LINK}")" >>"${GITHUB_OUTPUT}"
echo "##[endgroup]"