Skip to content

Commit

Permalink
build,ci: provide (mostly) static builds via nix and burrito
Browse files Browse the repository at this point in the history
Signed-off-by: Roman Volosatovs <[email protected]>
  • Loading branch information
rvolosatovs committed May 4, 2023
1 parent d5351db commit c9554b2
Show file tree
Hide file tree
Showing 27 changed files with 2,113 additions and 728 deletions.
14 changes: 14 additions & 0 deletions .github/actions/build-nix/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: build via Nix

inputs:
package:
description: package specification to build
required: true
install-path:
description: path within resulting output, from which to install (e.g. `/lib/libhostcore_wasmcloud_native.so`)

runs:
using: composite
steps:
- run: nix build -L '.#${{ inputs.package }}'
shell: bash
18 changes: 18 additions & 0 deletions .github/actions/install-nix/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: install Nix

inputs:
cachixAuthToken:
description: auth token for https://app.cachix.org/organization/wasmcloud/cache/wasmcloud

runs:
using: composite
steps:
- uses: DeterminateSystems/nix-installer-action@v2
with:
extra-conf: |
accept-flake-config = true
- uses: cachix/cachix-action@v12
continue-on-error: true
with:
name: wasmcloud
authToken: '${{ inputs.cachixAuthToken }}'
Loading

0 comments on commit c9554b2

Please sign in to comment.