mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2025-05-09 21:59:53 +02:00
Add a nix/develop action
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
680f954a87
commit
3935dfdac3
5 changed files with 106 additions and 0 deletions
32
.forgejo/workflows/nix-develop.yaml
Normal file
32
.forgejo/workflows/nix-develop.yaml
Normal file
|
@ -0,0 +1,32 @@
|
|||
---
|
||||
name: test nix/develop
|
||||
|
||||
on:
|
||||
push:
|
||||
|
||||
jobs:
|
||||
nix/develop:
|
||||
runs-on: nixos-flakes
|
||||
steps:
|
||||
- name: checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: run a command within a dev environment
|
||||
uses: ./develop
|
||||
with:
|
||||
flake: ./develop/test
|
||||
package: "hello"
|
||||
run: |
|
||||
hello
|
||||
|
||||
- name: run multiple commands within a dev environment
|
||||
uses: ./develop
|
||||
with:
|
||||
flake: ./develop/test
|
||||
package: "hello"
|
||||
run: |
|
||||
gcc --version
|
||||
hello
|
||||
if [ -n "${CI}" ]; then
|
||||
echo "I'm running in CI!"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue