Skip to content

Commit

Permalink
Fix CI/CD workflow files
Browse files Browse the repository at this point in the history
  • Loading branch information
Liz Jeong authored and Liz Jeong committed Jul 19, 2024
1 parent af958a7 commit 3a56335
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 28 deletions.
21 changes: 6 additions & 15 deletions .github/workflows/build-darwin-amd64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,22 +54,13 @@ jobs:
cd ../miniwasm \
&& make build \
&& cd ./build \
&& ls ~/go/pkg/mod/github.com/CosmWasm/wasmvm* \
&& cp ~/go/pkg/mod/github.com/CosmWasm/wasmvm@"$WASMVM_VERSION"/internal/api/libwasmvm.dylib ./ \
&& tar -czvf miniwasm_"$MINIWASM_VERSION"_Darwin_"$ARCH".tar.gz ./minitiad libwasmvm.dylib \
&& mv ./miniwasm_"$MINIWASM_VERSION"_Darwin_"$ARCH".tar.gz $GITHUB_WORKSPACE/ \
&& rm -rf ./libwasmvm.dylib ./minitiad
&& ls ~/go/pkg/mod/github.com/ \
&& ls ~/go/pkg/mod/github.com/\!cosm\!wasm/ \
&& cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \
&& tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH".tar.gz ./minitiad libwasmvm.dylib \
&& mv ./miniwasm_"$VERSION"_Darwin_"$ARCH".tar.gz $GITHUB_WORKSPACE/ \
&& rm -rf ./libwasmvm.dylib ./minitiad
# - name: Build and Package for Darwin ADM64
# run: |
# cd ../miniwasm \
# && make build \
# && cd ./build \
# && cp ~/go/pkg/mod/github.com/initia-labs/movevm@${WASMVM_VERSION}/api/libmovevm.dylib ./ \
# && cp ~/go/pkg/mod/github.com/initia-labs/movevm@${WASMVM_VERSION}/api/libcompiler.dylib ./ \
# && tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz minitiad libmovevm.dylib libcompiler.dylib \
# && mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \
# && rm -rf ./libmovevm.dylib ./libcompiler.dylib ./minitiad
- name: Release
uses: softprops/action-gh-release@v2
with:
Expand Down
15 changes: 2 additions & 13 deletions .github/workflows/build-darwin-arm64.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ jobs:
echo "VERSION=${VERSION}"
echo "ARCH_NAME=${ARCH_NAME}"
echo "MINIWASM_NETWORK_NAME=${MINIWASM_NETWORK_NAME}"
# - name: Build and Package for Darwin ARM64
# run: |
# cd ../miniwasm \
# && make build \
# && cd ./build \
# && cp ~/go/pkg/mod/github.com/initia-labs/movevm@${WASMVM_VERSION}/api/libmovevm.dylib ./ \
# && cp ~/go/pkg/mod/github.com/initia-labs/movevm@${WASMVM_VERSION}/api/libcompiler.dylib ./ \
# && tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz minitiad libmovevm.dylib libcompiler.dylib \
# && mv ./miniwasm_"$VERSION"_Darwin_"$ARCH_NAME".tar.gz $GITHUB_WORKSPACE/ \
# && rm -rf ./libmovevm.dylib ./libcompiler.dylib ./minitiad
- name: Build and Package for Darwin ARM64
run: |
Expand All @@ -64,8 +53,8 @@ jobs:
&& ls ~/go/pkg/mod/github.com/ \
&& ls ~/go/pkg/mod/github.com/\!cosm\!wasm/ \
&& cp ~/go/pkg/mod/github.com/\!cosm\!wasm/wasmvm/v2@${WASMVM_VERSION}/internal/api/libwasmvm.dylib ./ \
&& tar -czvf miniwasm_"$MINIWASM_VERSION"_Darwin_"$ARCH".tar.gz ./minitiad libwasmvm.dylib \
&& mv ./miniwasm_"$MINIWASM_VERSION"_Darwin_"$ARCH".tar.gz $GITHUB_WORKSPACE/ \
&& tar -czvf miniwasm_"$VERSION"_Darwin_"$ARCH".tar.gz ./minitiad libwasmvm.dylib \
&& mv ./miniwasm_"$VERSION"_Darwin_"$ARCH".tar.gz $GITHUB_WORKSPACE/ \
&& rm -rf ./libwasmvm.dylib ./minitiad
- name: Release
Expand Down

0 comments on commit 3a56335

Please sign in to comment.