Skip to content

Commit

Permalink
add build support for aarch64 linux binary
Browse files Browse the repository at this point in the history
  • Loading branch information
VishnuJin committed Mar 30, 2022
1 parent f7863ae commit 1dc480a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ jobs:
env: {},
targetPath: "target/release/",
}
- {
os: "ubuntu-latest",
arch: "aarch64",
extension: "",
env: {},
targetPath: "target/aarch64-unknown-linux-gnu/release/",
}
- {
os: "macos-latest",
arch: "amd64",
Expand Down Expand Up @@ -86,11 +93,18 @@ jobs:

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch == 'aarch64'
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'macos-latest'
with:
command: build
args: "--all-features --release --target aarch64-apple-darwin"

- name: build release
uses: actions-rs/cargo@v1
if: matrix.config.arch == 'aarch64' && matrix.config.os == 'ubuntu-latest'
with:
command: build
args: "--all-features --release --target aarch64-unknown-linux-gnu"

- name: package release assets
shell: bash
run: |
Expand Down

0 comments on commit 1dc480a

Please sign in to comment.