|
23 | 23 | fail-fast: false |
24 | 24 | matrix: |
25 | 25 | 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" } |
30 | 28 | - { target: "x86_64-apple-darwin", os: "macos-latest", arch: "amd64", extension: "" } |
31 | 29 | - { target: "aarch64-apple-darwin", os: "macos-latest", arch: "aarch64", extension: "" } |
32 | 30 | - { target: "x86_64-pc-windows-msvc", os: "windows-latest", arch: "amd64", extension: ".exe" } |
|
52 | 50 | echo '[target.aarch64-unknown-linux-gnu]' >> ${HOME}/.cargo/config.toml |
53 | 51 | echo 'linker = "aarch64-linux-gnu-gcc"' >> ${HOME}/.cargo/config.toml |
54 | 52 | - 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 }} |
56 | 54 | - name: Copy plugin binary to standard location |
57 | 55 | shell: bash |
58 | 56 | run: cp target/${{ matrix.config.target }}/release/${{ env.PROGRAM_NAME}}${{ matrix.config.extension }} target/release/${{ env.PROGRAM_NAME}}${{ matrix.config.extension }} |
|
0 commit comments