Skip to content

Commit

Permalink
chore: fix build release (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
giangndm authored Dec 21, 2024
1 parent 61c5396 commit ba6c113
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 62 deletions.
66 changes: 4 additions & 62 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions Cross.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[target.aarch64-unknown-linux-gnu]
# Install libssl-dev:arm64, see <https://github.com/cross-rs/cross/blob/main/docs/custom_images.md#adding-dependencies-to-existing-images>
pre-build = [
"dpkg --add-architecture $CROSS_DEB_ARCH",
"apt-get update && apt-get --assume-yes install libssl-dev:$CROSS_DEB_ARCH",
]

0 comments on commit ba6c113

Please sign in to comment.