Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ci alpine build test #853

Merged
merged 10 commits into from
Jul 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ on:
- reopened
- ready_for_review

concurrency:
group: ${{ github.event.pull_request.head.ref }}
cancel-in-progress: true

env:
S3_BUCKET_PATH: "zetachain-deployment-files/builds/zeta-node"
S3_PUBLIC_BUCKET_PATH: "zetachain-external-files"
Expand Down Expand Up @@ -81,6 +85,7 @@ jobs:
GOOS: linux
GOARCH: ${{ env.CPU_ARCH }}
run: |
make clean
make install-testnet
cp "$HOME"/go/bin/* ./

Expand Down Expand Up @@ -169,6 +174,7 @@ jobs:
run: |
apk add --no-cache --update
go mod tidy
make clean
make install-testnet
cp "$HOME"/go/bin/* ./

Expand Down Expand Up @@ -196,11 +202,17 @@ jobs:
path: |
zetacored-alpine-*
zetaclientd-alpine-*

- name: Clean Up Alpine Workspace
if: always()
shell: alpine.sh --root {0}
run: |
set -e # fail on error
rm -rf *

- name: Clean Up Workspace
if: always()
uses: AutoModality/action-clean@v1


smoke-test:
runs-on: ["zeta-runners"]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ TEST_DIR?="./..."
TEST_BUILD_FLAGS := -tags TESTNET,pebbledb,ledger
PRIV_BUILD_FLAGS := -tags PRIVNET,pebbledb,ledger

clean: clean-binaries clean-dir
clean: clean-binaries clean-dir clean-test-dir

clean-binaries:
@rm -rf ${GOBIN}/zetacored
Expand Down
Loading