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:
parent
c7e4d24cd2
commit
680f954a87
5 changed files with 116 additions and 0 deletions
36
.forgejo/workflows/nix-build.yaml
Normal file
36
.forgejo/workflows/nix-build.yaml
Normal 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue