-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci,build: [WIP] release via nix+burrito
Signed-off-by: Roman Volosatovs <[email protected]>
- Loading branch information
1 parent
e8f2717
commit dd02db6
Showing
22 changed files
with
1,677 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
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.a`) | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: nix build -L '.#${{ inputs.package }}' | ||
shell: bash | ||
- run: nix run -L --inputs-from . 'nixpkgs#coreutils' -- --coreutils-prog=ginstall -p "./result${{ inputs.install-path }}" '${{ inputs.package }}' | ||
shell: bash | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.package }} | ||
path: ${{ inputs.package }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: install Nix | ||
|
||
inputs: | ||
cachixAuthToken: | ||
description: auth token for https://app.cachix.org/organization/wasmcloud/cache/wasmcloud | ||
|
||
env: | ||
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 # abort caching attempt if it's slow | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- run: sudo mkdir -p /nix | ||
if: ${{ runner.os == 'Linux' }} | ||
shell: bash | ||
- run: sudo chown $(whoami) /nix | ||
if: ${{ runner.os == 'Linux' }} | ||
shell: bash | ||
- uses: actions/cache@v3 | ||
if: ${{ runner.os == 'Linux' }} | ||
with: | ||
path: /nix | ||
key: nix | ||
- uses: nixbuild/nix-quick-install-action@v22 | ||
with: | ||
nix_conf: | | ||
accept-flake-config = true | ||
access-tokens = github.com=${{ github.token }} | ||
experimental-features = nix-command flakes | ||
- uses: cachix/cachix-action@v12 | ||
continue-on-error: true | ||
with: | ||
name: wasmcloud | ||
authToken: '${{ inputs.cachixAuthToken }}' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.