1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2024-11-24 04:29:17 +01:00
nix/.forgejo/workflows/nix-build.yaml

40 lines
813 B
YAML
Raw Normal View History

---
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 }}