Skip to content

Commit

Permalink
add gh exe build
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoeldner committed Apr 10, 2024
1 parent 51b8191 commit a0b6e4a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,19 @@ jobs:
echo Building the project and its devShell
nix build .#check --log-lines 500 --show-trace
echo Build the bundle
nix build .#pact-binary-bundle --log-lines 500 --show-trace --out-link pact-binary-bundle
echo Build the recursive output
nix build .#recursive.allDerivations --log-lines 500 --show-trace
- name: Verify pact binary
run: |
echo Validating pact version
nix run pact --version
- name: Publish the bundle
uses: actions/upload-artifact@v3
with:
name: pact-bundle.${{ matrix.os }}
path: pact-binary-bundle
19 changes: 18 additions & 1 deletion flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@
inputs = {
hs-nix-infra.url = "github:kadena-io/hs-nix-infra";
flake-utils.url = "github:numtide/flake-utils";
nix-bundle-exe = { url = "github:3noch/nix-bundle-exe"; flake = false; };
};

outputs = { self, hs-nix-infra, flake-utils }:
outputs = inputs@{ self, hs-nix-infra, flake-utils, ...}:
flake-utils.lib.eachSystem
[ "x86_64-linux" "x86_64-darwin"
"aarch64-linux" "aarch64-darwin" ] (system:
Expand Down Expand Up @@ -53,6 +54,10 @@
packages.default = flake.packages."pact:exe:pact";
packages.recursive = with hs-nix-infra.lib.recursive system;
wrapRecursiveWithMeta "pact" "${wrapFlake self}.default";

packages.pact-binary-bundle = pkgs.callPackage inputs.nix-bundle-exe {}
packages.default;

packages.docs = pkgs.stdenv.mkDerivation {
name = "pact-docs";
src = ./docs;
Expand Down

0 comments on commit a0b6e4a

Please sign in to comment.