Skip to content

Commit cf4e1d2

Browse files
authored
enable aarch 64 builds (#20)
Signed-off-by: karthik2804 <[email protected]>
1 parent ad7c540 commit cf4e1d2

File tree

3 files changed

+156
-143
lines changed

3 files changed

+156
-143
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ jobs:
2323
fail-fast: false
2424
matrix:
2525
config:
26-
- { target: "x86_64-unknown-linux-gnu", os: "ubuntu-latest", arch: "amd64", extension: "" }
27-
# TODO: the cross-compile to Linux aarch64 fails with a pkg-config error that
28-
# I don't yet know how to resolve
29-
# - { target: "aarch64-unknown-linux-gnu", os: "ubuntu-latest", arch: "aarch64", extension: "" }
26+
- { target: "x86_64-unknown-linux-gnu", os: "ubuntu-20.04", arch: "amd64", extension: ""}
27+
- { target: "aarch64-unknown-linux-gnu", os: "ubuntu-20.04", arch: "aarch64", extension: "", extraArg: "--features openssl/vendored" }
3028
- { target: "x86_64-apple-darwin", os: "macos-latest", arch: "amd64", extension: "" }
3129
- { target: "aarch64-apple-darwin", os: "macos-latest", arch: "aarch64", extension: "" }
3230
- { target: "x86_64-pc-windows-msvc", os: "windows-latest", arch: "amd64", extension: ".exe" }
@@ -52,7 +50,7 @@ jobs:
5250
echo '[target.aarch64-unknown-linux-gnu]' >> ${HOME}/.cargo/config.toml
5351
echo 'linker = "aarch64-linux-gnu-gcc"' >> ${HOME}/.cargo/config.toml
5452
- name: Build plugin binary
55-
run: cargo build --release --target ${{ matrix.config.target }}
53+
run: cargo build --release --target ${{ matrix.config.target }} ${{ matrix.config.extraArg }}
5654
- name: Copy plugin binary to standard location
5755
shell: bash
5856
run: cp target/${{ matrix.config.target }}/release/${{ env.PROGRAM_NAME}}${{ matrix.config.extension }} target/release/${{ env.PROGRAM_NAME}}${{ matrix.config.extension }}

0 commit comments

Comments
 (0)