diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bbb502e..56d76e9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,88 +25,30 @@ jobs: matrix: build: - linux gnu x64 - # - linux musl x64 - linux gnu aarch64 - # - linux musl aarch64 - # - linux gnueabihf arm - # - linux gnueabihf armv7 - # - linux gnu mips - # - linux gnuabi64 mips64 - # - linux gnuabi64 mips64el - # - linux gnu mipsel - macos x64 - macos aarch64 - # - windows gnu x64 - # - windows msvc x64 include: - build: linux gnu x64 os: ubuntu-latest target: x86_64-unknown-linux-gnu - extension: "" - # - build: linux musl x64 - # os: ubuntu-latest - # target: x86_64-unknown-linux-musl - # extension: "" - build: linux gnu aarch64 os: ubuntu-latest target: aarch64-unknown-linux-gnu - extension: "" - # - build: linux musl aarch64 - # os: ubuntu-latest - # target: aarch64-unknown-linux-musl - # extension: "" - # - build: linux gnueabihf arm - # os: ubuntu-latest - # target: arm-unknown-linux-gnueabihf - # extension: "" - # - build: linux gnueabihf armv7 - # os: ubuntu-latest - # target: armv7-unknown-linux-gnueabihf - # extension: "" - # - build: linux gnu mips - # os: ubuntu-latest - # rust: 1.71.1 - # target: mips-unknown-linux-gnu - # extension: "" - # - build: linux gnuabi64 mips64 - # os: ubuntu-latest - # rust: 1.71.1 - # target: mips64-unknown-linux-gnuabi64 - # extension: "" - # - build: linux gnuabi64 mips64el - # os: ubuntu-latest - # rust: 1.71.1 - # target: mips64el-unknown-linux-gnuabi64 - # extension: "" - # - build: linux gnu mipsel - # os: ubuntu-latest - # rust: 1.71.1 - # target: mipsel-unknown-linux-gnu - # extension: "" - # - build: linux musl aarch64 - # os: ubuntu-latest - # target: aarch64-unknown-linux-musl - # extension: "" - build: macos x64 os: macos-latest target: x86_64-apple-darwin - extension: "" - build: macos aarch64 os: macos-latest target: aarch64-apple-darwin - extension: "" - # - build: windows gnu x64 - # os: ubuntu-latest - # target: x86_64-pc-windows-gnu - # extension: ".exe" - # - build: windows msvc x64 - # os: windows-latest - # target: x86_64-pc-windows-msvc - # extension: ".exe" steps: - name: Checkout repository uses: actions/checkout@v4 + - name: Install Deps + if: ${{ matrix.build == 'linux gnu x64' || matrix.build == 'linux gnu aarch64' }} + run: sudo apt-get install -y libssl-dev + - name: Build binary uses: houseabsolute/actions-rust-cross@v0 with: diff --git a/Cross.toml b/Cross.toml new file mode 100644 index 0000000..052e564 --- /dev/null +++ b/Cross.toml @@ -0,0 +1,6 @@ +[target.aarch64-unknown-linux-gnu] +# Install libssl-dev:arm64, see +pre-build = [ + "dpkg --add-architecture $CROSS_DEB_ARCH", + "apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH", +] \ No newline at end of file