1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2025-05-09 21:59:53 +02:00

Add a nix/build action

Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
Gergely Nagy 2023-09-22 20:12:32 +02:00
parent c7e4d24cd2
commit 680f954a87
5 changed files with 116 additions and 0 deletions

View file

@ -0,0 +1,36 @@
---
name: test nix/build
on:
push:
jobs:
nix/build:
runs-on: nixos-flakes
steps:
- name: checkout
uses: actions/checkout@v3
- name: build the local test package
id: build-local
uses: ./build
with:
flake: ./build/test
package: "hello"
logs: true
- name: print the output path
run: |
echo ${{ steps.build-local.outputs.output-path }}
- name: build a package from nixpkgs
id: build-nixpkgs
uses: ./build
with:
flake: nixpkgs
package: "hello"
logs: true
- name: print the output path
run: |
echo ${{ steps.build-nixpkgs.outputs.output-path }}