Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion .github/workflows/build-and-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,21 @@ jobs:
run: docker build -t builder .

- name: Build linux arm64 lib from version supported in Dockerfile
run: docker run --rm --workdir /project --env MSBUILD --env CONTENTS_DIR --env UNITY_PATH -v ${PWD}:/project builder:latest /bin/bash -c "make build-linux"
# The vendored deps/openssl/linux is a precompiled x86_64 OpenSSL, so on
# arm64 the final link fails ("libssl.a ... file in wrong format"). Rebuild
# OpenSSL 1.1.1q for linux-aarch64 into deps/openssl/linux before building.
run: |
docker run --rm --workdir /project --env MSBUILD --env CONTENTS_DIR --env UNITY_PATH -v ${PWD}:/project builder:latest /bin/bash -c '
set -e
apt-get update && apt-get install -y perl
tar xzf deps/openssl-1.1.1q.tar.gz -C /tmp
cd /tmp/openssl-1.1.1q
./Configure linux-aarch64 --prefix=/project/deps/openssl/linux
make -j"$(nproc)"
make install_sw
cd /project
make build-linux
'

- name: Upload binary artifact
uses: actions/upload-artifact@v4
Expand Down
Loading