File tree 2 files changed +14
-4
lines changed 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 69
69
if [[ "${{matrix.target}}" == *musl ]]; then
70
70
sudo apt-get install musl-dev musl-tools
71
71
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
73
73
fi
74
74
- name : Install musl-gcc (fom compiling OpenSSL)
75
75
if : matrix.target == 'x86_64-unknown-linux-musl'
@@ -98,10 +98,10 @@ jobs:
98
98
99
99
- name : Build (openssl-vendored)
100
100
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
102
102
- name : Build (no openssl-vendored)
103
103
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 }}
105
105
106
106
- name : Prepare artifacts [Windows]
107
107
shell : bash
Original file line number Diff line number Diff line change @@ -26,11 +26,21 @@ jobs:
26
26
with :
27
27
python-version : ' 3.10'
28
28
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
+
29
39
- name : Build wheels
30
40
uses : PyO3/maturin-action@v1
31
41
with :
32
42
target : ${{ matrix.target }}
33
- args : --release --out dist --find-interpreter
43
+ args : --release --out dist --find-interpreter ${{ steps.is-openssl-vendored.outputs.enabled }}
34
44
manylinux : auto
35
45
before-script-linux : |
36
46
case "${{ matrix.target }}" in
You can’t perform that action at this time.
0 commit comments