2023-09-22 20:12:32 +02:00
|
|
|
---
|
|
|
|
name: nix-build
|
|
|
|
author: Gergely Nagy
|
|
|
|
description: "Build packages with Nix"
|
|
|
|
inputs:
|
|
|
|
flake:
|
|
|
|
description: "The flake to build packages from"
|
|
|
|
default: "."
|
|
|
|
required: true
|
|
|
|
package:
|
|
|
|
description: "The package to build from a flake"
|
|
|
|
required: false
|
|
|
|
logs:
|
|
|
|
description: "Enable showing the full build logs"
|
|
|
|
default: false
|
|
|
|
required: false
|
2023-09-25 10:04:42 +02:00
|
|
|
out-link:
|
|
|
|
description: "Use this prefix for the symlinks to the build results"
|
|
|
|
default: "result"
|
|
|
|
required: true
|
2023-09-22 20:12:32 +02:00
|
|
|
outputs:
|
|
|
|
output-path:
|
|
|
|
description: "The resulting output paths"
|
|
|
|
value: "${{ steps.nix-build.outputs.output-path }}"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- id: nix-build
|
|
|
|
shell: bash
|
|
|
|
run: $GITHUB_ACTION_PATH/bin/nix-build
|
|
|
|
env:
|
|
|
|
INPUT_FLAKE: ${{ inputs.flake }}
|
|
|
|
INPUT_PACKAGE: ${{ inputs.package }}
|
|
|
|
INPUT_LOGS: ${{ inputs.logs }}
|
2023-09-25 10:04:42 +02:00
|
|
|
INPUT_OUT_LINK: ${{ inputs.out-link }}
|