Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Jul 30, 2024
1 parent b3a48d6 commit 9a9c055
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/build-darwin-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
go-version: "1.22.4"
- name: Set environment variables
run: |
L1_NETWORK_NAME="initiation-1"
Expand All @@ -30,20 +30,20 @@ jobs:
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "ARCH_NAME=aarch64" >> $GITHUB_ENV
- name: Ensure dependencies
run: |
go mod tidy
go get github.com/initia-labs/movevm@${MOVEVM_VERSION}
- name: Print environment variables
run: |
echo "GOARCH=${GOARCH}"
echo "GOOS=${GOOS}"
echo "VERSION=${VERSION}"
echo "ARCH_NAME=${ARCH_NAME}"
echo "L1_NETWORK_NAME=${L1_NETWORK_NAME}"
- name: Build and Package for Darwin ARM64
run: |
cd ../initia \
Expand All @@ -54,9 +54,12 @@ jobs:
&& tar -czvf initia_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz initiad libmovevm.dylib libcompiler.dylib \
&& mv ./initia_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \
&& rm -rf ./libmovevm.dylib ./libcompiler.dylib ./initiad
- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
initia_${{ env.VERSION }}_Darwin_${{ env.ARCH_NAME }}.tar.gz
env:
Version: ${{ env.VERSION }}
ARCH_NAME: ${{ env.ARCH_NAME }}
8 changes: 5 additions & 3 deletions .github/workflows/build-linux-amd64.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Build Linux AMD64

on:
workflow_call
on: workflow_call

jobs:
build:
Expand All @@ -13,7 +12,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.4'
go-version: "1.22.4"

- name: Set environment variables
run: |
Expand Down Expand Up @@ -50,3 +49,6 @@ jobs:
with:
files: |
./build/initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz
env:
Version: ${{ env.VERSION }}
ARCH_NAME: ${{ env.ARCH_NAME }}
9 changes: 6 additions & 3 deletions .github/workflows/build-linux-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
fi
echo "VERSION=${VERSION}" >> $GITHUB_ENV
echo "ARCH_NAME=aarch64" >> $GITHUB_ENV
- name: Build for ARM64
env:
DOCKER_BUILDKIT: 1
Expand Down Expand Up @@ -70,9 +70,12 @@ jobs:
- name: List files
run: ls -l

- name: Release
uses: softprops/action-gh-release@v2
with:
files: |
./initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz
./initia_${{ env.VERSION }}_Linux_${{ env.ARCH_NAME }}.tar.gz
env:
Version: ${{ env.VERSION }}
ARCH_NAME: ${{ env.ARCH_NAME }}

0 comments on commit 9a9c055

Please sign in to comment.