mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2024-11-23 20:19:16 +01:00
b77e4125ee
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
39 lines
813 B
YAML
39 lines
813 B
YAML
---
|
|
name: test nix/build
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.forgejo/workflows/nix-build.yaml'
|
|
- 'build/**'
|
|
|
|
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 }}
|