mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2025-01-18 16:41:31 +01:00
37 lines
739 B
YAML
37 lines
739 B
YAML
|
---
|
||
|
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 }}
|