Skip to content

Commit e6cd62f

Browse files
committed
only build binary exe target
1 parent 192622a commit e6cd62f

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

.github/workflows/binary-builds.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
if [[ "${{matrix.target}}" == *musl ]]; then
7070
sudo apt-get install musl-dev musl-tools
7171
else
72-
sudo apt-get install gcc-11-aarch64-linux-gnu binutils-aarch64-linux-gnu
72+
sudo apt-get install gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu
7373
fi
7474
- name: Install musl-gcc (fom compiling OpenSSL)
7575
if: matrix.target == 'x86_64-unknown-linux-musl'
@@ -98,10 +98,10 @@ jobs:
9898

9999
- name: Build (openssl-vendored)
100100
if: steps.is-openssl-vendored.outputs.enabled == 'true'
101-
run: cargo build --release --target ${{ matrix.target }} --features openssl-vendored
101+
run: cargo build --release --bin cpp-linter-cli --target ${{ matrix.target }} --features openssl-vendored
102102
- name: Build (no openssl-vendored)
103103
if: steps.is-openssl-vendored.outputs.enabled == 'false'
104-
run: cargo build --release --target ${{ matrix.target }}
104+
run: cargo build --release --bin cpp-linter-cli --target ${{ matrix.target }}
105105

106106
- name: Prepare artifacts [Windows]
107107
shell: bash

.github/workflows/python-packaging.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,21 @@ jobs:
2626
with:
2727
python-version: '3.10'
2828

29+
- name: Calculate openssl-vendored
30+
shell: bash
31+
id: is-openssl-vendored
32+
run: |
33+
if [[ "${{ startsWith(matrix.target, 'x86') }}" == "true" ]]; then
34+
echo "enabled=" >> $GITHUB_OUTPUT
35+
else
36+
echo "enabled=--features openssl-vendored" >> $GITHUB_OUTPUT
37+
fi
38+
2939
- name: Build wheels
3040
uses: PyO3/maturin-action@v1
3141
with:
3242
target: ${{ matrix.target }}
33-
args: --release --out dist --find-interpreter
43+
args: --release --out dist --find-interpreter ${{ steps.is-openssl-vendored.outputs.enabled }}
3444
manylinux: auto
3545
before-script-linux: |
3646
case "${{ matrix.target }}" in

0 commit comments

Comments
 (0)