Skip to content

Commit

Permalink
update release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
storybehind committed Aug 3, 2024
1 parent 5d8d5b6 commit 241f2bb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ jobs:
run: |
cd ${{ env.SRC_DIR }}
echo "Building for Darwin/amd64..."
GO111MODULE=on CGO_ENABLED=1 CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -x -v -tags bn256 -ldflags "-X main.VersionStr=${{ env.VERSION }}" -o ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }} .
export GO111MODULE=on
export CGO_ENABLED=1
CC=o64-clang CXX=o64-clang++ GOOS=darwin GOARCH=amd64 go build -o ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }} ${{ env.SRC_DIR }}
echo "Build completed."
- name: Create Zip File for Darwin/amd64
Expand Down Expand Up @@ -129,11 +131,14 @@ jobs:
--output type=docker,dest=${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}-amd64.tar \
-f ${{ env.SRC_DIR }}/scripts/debian/Dockerfile.build ${{ env.SRC_DIR }}
- name: Load image ${{ env.APP_NAME }}-amd64 & Extract binary from container
- name: Load image ${{ env.APP_NAME }}-amd64
run: |
docker load -i ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}-amd64.tar
- name: Extract binary ${{ env.APP_NAME }}-amd64 from container
run: |
CONTAINER_ID=$(docker create ${{ env.APP_NAME }}-amd64)
docker cp ${CONTAINER_ID}:/${{ env.APP_NAME }} ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}
docker cp ${CONTAINER_ID}:/zbox ${{ env.OUTPUT_DIR }}/${{ env.APP_NAME }}
docker rm ${CONTAINER_ID}
- name: Create Zip File for linux/amd64
Expand Down

0 comments on commit 241f2bb

Please sign in to comment.