Skip to content

Commit 109175c

Browse files
Make examples build
1 parent ad9d09e commit 109175c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/integrate.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ jobs:
6161
extra_nix_config: |
6262
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
6363
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
64+
extra-experimental-features = nix-command flakes
6465
- uses: cachix/cachix-action@v10
6566
with:
6667
name: mlabs
@@ -75,4 +76,4 @@ jobs:
7576
dist-newstyle
7677
key: ${{ runner.os }}-cabal
7778
- name: Build the full ci derivation
78-
run: nix build -L .#check.x86_64-linux --extra-experimental-features nix-command --extra-experimental-features flakes
79+
run: make nix_build

Makefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# In most cases you should execute Make after entering nix-shell.
44

55
.PHONY: hoogle pab_servers_all pab_servers_all pab_db clean_db \
6-
build test accept_pirs watch ghci readme_contents \
6+
nix_build build test accept_pirs watch ghci readme_contents \
77
format lint requires_nix_shell
88

99
usage:
@@ -16,6 +16,7 @@ usage:
1616
@echo
1717
@echo "Available commands:"
1818
@echo " hoogle -- Start local hoogle"
19+
@echo " nix_build -- Run nix build -L on all targets"
1920
@echo " build -- Run cabal v2-build"
2021
@echo " watch -- Track files: bot-plutus-interface.cabal, src/* and run 'make build' on change"
2122
@echo " test -- Run cabal v2-test"
@@ -44,6 +45,9 @@ ifdef FLAGS
4445
GHC_FLAGS = --ghc-options "$(FLAGS)"
4546
endif
4647

48+
nix_build:
49+
nix build -L .#check.x86_64-linux .#plutus-transfer:exe:plutus-transfer-pab .#plutus-game:exe:plutus-game-pab .#plutus-nft:exe:plutus-nft-pab
50+
4751
build: requires_nix_shell
4852
cabal v2-build $(GHC_FLAGS)
4953

cabal.project

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
index-state: 2021-10-20T00:00:00Z
33

44
packages: ./.
5+
./examples/plutus-game/plutus-game.cabal
6+
./examples/plutus-transfer/plutus-transfer.cabal
7+
./examples/plutus-nft/plutus-nft.cabal
58

69
-- You never, ever, want this.
710
write-ghc-environment-files: never

0 commit comments

Comments
 (0)