Skip to content

Commit

Permalink
feat(ci) update cross compile for release
Browse files Browse the repository at this point in the history
  • Loading branch information
uhryniuk committed Oct 12, 2024
1 parent d9193c1 commit b79fa1f
Showing 1 changed file with 17 additions and 10 deletions.
27 changes: 17 additions & 10 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,27 @@ jobs:
- x86_64-unknown-linux-gnu
- aarch64-unknown-linux-gnu
- aarch64-apple-darwin

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-apple-darwin, aarch64-apple-darwin]
include:
# MacOS with arm64 needs a different runner architecture
- os: macos-latest
target: aarch64-apple-darwin
steps:
# Step 1: Check out the code
- name: Checkout code
uses: actions/checkout@v3

- name: Install cross-compilers

# Install cross for cross-compilation
- name: Install cross
run: |
cargo install cross
# Run cross build for each target
- name: Cross compile
run: |
sudo apt-get update
sudo apt-get install -y gcc-multilib g++-multilib
sudo apt-get install -y \
gcc-aarch64-linux-gnu \
gcc-x86-64-linux-gnu \
libssl-dev pkg-config
cross build --target ${{ matrix.target }} --release
# Step 2: Calculate the next version tag
- name: Calculate next tag
Expand Down

0 comments on commit b79fa1f

Please sign in to comment.