From e78c35ba2279b843ea9e57e9bf2e7bf4a8bf8525 Mon Sep 17 00:00:00 2001 From: iorveth Date: Tue, 18 Jun 2024 08:56:19 +0000 Subject: [PATCH] GHA: build & move contracts in 1 step --- .github/workflows/test.yml | 5 +---- Makefile | 5 +++-- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index d9a77b9..cf9b3b4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,10 +24,7 @@ jobs: go-version: '1.22' - name: Build contracts - run: cd contracts; make build; cd .. - - - name: Move contracts - run: sudo make move-contracts + run: sudo make build-contracts - name: Test run: go test -v ./... diff --git a/Makefile b/Makefile index 0b32bfa..6f2a896 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ ########################### -### Move contracts ### +### Build contracts ### ########################### #!/bin/bash UNAMEP := $(shell uname -p) -move-contracts: +build-contracts: echo $(UNAMEP) mkdir -p contracts_wasm + cd contracts; make build; cd .. for file in ./contracts/artifacts/*; do \ if [ $(UNAMEP) = arm ]; then \ echo "$$file"; \