@@ -52,29 +52,11 @@ jobs:
5252 with :
5353 targets : ${{ matrix.target }}
5454
55- # --- Linux native build dependencies ---
56- - name : Install system dependencies for native Linux builds
57- if : matrix.target == 'x86_64-unknown-linux-gnu'
58- run : |
59- sudo apt-get update
60- sudo apt-get install -y pkg-config libssl-dev
61-
6255 # --- Cross Compilation Setup (ARM) ---
6356 - name : Install cross for ARM builds
6457 if : matrix.target == 'aarch64-unknown-linux-gnu' || matrix.target == 'armv7-unknown-linux-gnueabihf'
6558 run : cargo install cross --git https://github.com/cross-rs/cross
6659
67- # --- macOS OpenSSL setup ---
68- - name : Install OpenSSL on macOS
69- if : runner.os == 'macOS'
70- run : |
71- brew install --quiet openssl@3 pkg-config
72- echo "OPENSSL_DIR=$(brew --prefix openssl@3)" >> $GITHUB_ENV
73- echo "PKG_CONFIG_PATH=$(brew --prefix openssl@3)/lib/pkgconfig" >> $GITHUB_ENV
74- echo "LIBRARY_PATH=$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
75- echo "LDFLAGS=-L$(brew --prefix openssl@3)/lib" >> $GITHUB_ENV
76- echo "CPPFLAGS=-I$(brew --prefix openssl@3)/include" >> $GITHUB_ENV
77-
7860 # --- Build step per OS ---
7961 - name : Build Harmony
8062 shell : bash
9072 ;;
9173 Linux)
9274 case "${{ matrix.target }}" in
93- *musl*)
94- echo "Skipping musl targets due to DBus dependency"
95- exit 0
96- ;;
9775 aarch64-unknown-linux-gnu|armv7-unknown-linux-gnueabihf)
9876 echo "Building for ARM target ${{ matrix.target }} with cross..."
9977 cross build --release --target ${{ matrix.target }}
0 commit comments