Skip to content

Commit

Permalink
GHA: build & move contracts in 1 step
Browse files Browse the repository at this point in the history
  • Loading branch information
iorveth committed Jun 18, 2024
1 parent 665e272 commit e78c35b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ./...
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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"; \
Expand Down

0 comments on commit e78c35b

Please sign in to comment.