From 4b0af066aae2702ea1423b12f5f3b0aa9fbfd9da Mon Sep 17 00:00:00 2001 From: selimseker Date: Fri, 6 Sep 2024 20:33:02 +0300 Subject: [PATCH] build linux-arm64 with prebuilt openssl installation --- .github/workflows/build_prod_exe.yml | 5 ++--- Cross.toml | 5 +++++ 2 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 Cross.toml diff --git a/.github/workflows/build_prod_exe.yml b/.github/workflows/build_prod_exe.yml index 19155a0..6534456 100644 --- a/.github/workflows/build_prod_exe.yml +++ b/.github/workflows/build_prod_exe.yml @@ -18,9 +18,9 @@ jobs: # - { runner: macos-latest, osname: macOS, arch: amd64, target: x86_64-apple-darwin, command: build } # - { runner: macos-latest, osname: macOS, arch: arm64, target: aarch64-apple-darwin, command: build } # - { runner: ubuntu-latest, osname: linux, arch: amd64, target: x86_64-unknown-linux-gnu, command: build } - # - { runner: ubuntu-latest, osname: linux, arch: arm64, target: aarch64-unknown-linux-gnu, command: build } + - { runner: ubuntu-latest, osname: linux, arch: arm64, target: aarch64-unknown-linux-gnu, command: build } # - { runner: windows-latest, osname: windows, arch: amd64, target: x86_64-pc-windows-msvc, command: build, extension: ".exe" } - - { runner: windows-latest, osname: windows, arch: arm64, target: aarch64-pc-windows-msvc, command: build, extension: ".exe", toolchain: nightly } + # - { runner: windows-latest, osname: windows, arch: arm64, target: aarch64-pc-windows-msvc, command: build, extension: ".exe", toolchain: nightly } steps: - name: Checkout code @@ -34,7 +34,6 @@ jobs: uses: houseabsolute/actions-rust-cross@v0 with: command: ${{ matrix.command }} - toolchain: ${{ matrix.toolchain }} target: ${{ matrix.target }} args: "--locked --release" strip: true diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..4908575 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,5 @@ +[target.aarch64-unknown-linux-gnu] +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get install --assume-yes libssl-dev:$CROSS_DEB_ARCH" +]