Skip to content

Commit

Permalink
Add aarch64 build (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidenaio authored Mar 4, 2023
1 parent aa8b39a commit faf7eb3
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
include:
- build: linux-x64
os: ubuntu-latest
artifact_name: 'libidena_wasm_linux_amd64'
artifact_name: 'libidena_wasm_linux_amd64.a'
- build: macos-x64
os: macos-latest
artifact_name: 'libidena_wasm_darwin_amd64'
artifact_name: 'libidena_wasm_darwin_amd64.a'
- build: windows-x64
os: windows-latest
artifact_name: 'libidena_wasm_windows_amd64'
artifact_name: 'libidena_wasm_windows_amd64.a'
target: x86_64-pc-windows-gnu
container: ${{ matrix.container }}
steps:
Expand Down Expand Up @@ -86,14 +86,14 @@ jobs:
run: |
${CARGO_BINARY} build --target=aarch64-unknown-linux-gnu --release
env:
CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${GITHUB_WORKSPACE}:/project -w /project idena-wasm/aarch64 cross
CARGO_BINARY: docker run -v /var/run/docker.sock:/var/run/docker.sock -v ${{ github.workspace }}:/project -w /project idena-wasm/aarch64 cross
CROSS_DOCKER_IN_DOCKER: true
PKG_CONFIG_PATH: /usr/lib/aarch64-linux-gnu/pkgconfig
PKG_CONFIG_ALLOW_CROSS: true
- name: Rename output file
run: |
asset_name=libidena_wasm_linux_aarch64
mv target/release/${BINARY_NAME} ${asset_name}
asset_name=libidena_wasm_linux_aarch64.a
cp target/aarch64-unknown-linux-gnu/release/${BINARY_NAME} ${asset_name}
echo "ASSET_NAME=${asset_name}" >> $GITHUB_ENV
- name: Release
uses: softprops/action-gh-release@v1
Expand Down

0 comments on commit faf7eb3

Please sign in to comment.