mirror of
https://git.madhouse-project.org/actions/nix.git
synced 2025-05-12 14:59:54 +02:00
Add a nix/build action
Signed-off-by: Gergely Nagy <me@gergo.csillger.hu>
This commit is contained in:
parent
c7e4d24cd2
commit
680f954a87
5 changed files with 116 additions and 0 deletions
30
build/action.yml
Normal file
30
build/action.yml
Normal file
|
@ -0,0 +1,30 @@
|
|||
---
|
||||
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
|
||||
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 }}
|
Loading…
Add table
Add a link
Reference in a new issue