1
0
Fork 0
mirror of https://git.madhouse-project.org/actions/nix.git synced 2024-10-16 15:54:42 +02:00
nix/.forgejo/workflows/nix-build.yaml
Gergely Nagy b77e4125ee ci: Restrict workflows to paths that matter for them
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
2023-09-22 22:14:43 +02:00

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