Skip to content

Commit dd26af2

Browse files
committed
scripts: gha: fix cross compilers paths
1 parent b9fdf37 commit dd26af2

File tree

4 files changed

+4
-5
lines changed

4 files changed

+4
-5
lines changed

.github/workflows/c-cpp.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
YQ_VERSION: 4.44.6
4242
# WAFCACHE: ~/wafcache
4343
WAFCACHE_STATS: 1
44-
MSVC_WINE_PATH: /home/runner/msvc
4544
GH_CPU_OS: ${{ matrix.targetos }}
4645
GH_CPU_ARCH: ${{ matrix.targetarch }}
4746
steps:

scripts/gha/build_common.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ build_with_waf()
2323
python waf --help | grep 'enable-vgui' && WAF_ENABLE_VGUI_OPTION=--enable-vgui
2424
fi
2525

26-
if [ "$MSVC_WINE" -ne 0 ]; then
26+
if [ -n "$MSVC_WINE_PATH" ]; then
2727
WAF_ENABLE_MSVC_WINE=--enable-msvc-wine
2828
fi
2929

scripts/gha/self-hosted/build_linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ declare -A TOOLCHAINS
55

66
TOOLCHAINS[i386]=/home/runner/x-tools/i686-unknown-linux-gnu/bin/i686-unknown-linux-gnu-
77
TOOLCHAINS[amd64]=/home/runner/x-tools/x86_64-unknown-linux-gnu/bin/x86_64-unknown-linux-gnu-
8-
TOOLCHAINS[arm64]=/home/runner/x-tools/arm64-unknown-linux-gnu/bin/arm64-unknown-linux-gnu-
9-
TOOLCHAINS[armhf]=/home/runner/x-tools/armhf-unknown-linux-gnu/bin/armhf-unknown-linux-gnu-
8+
TOOLCHAINS[arm64]=/home/runner/x-tools/aarch64-unknown-linux-gnu/bin/aarch64-unknown-linux-gnu-
9+
TOOLCHAINS[armhf]=/home/runner/x-tools/arm-unknown-linux-gnueabihf/bin/arm-unknown-linux-gnueabihf-
1010

1111
export CROSS_COMPILE=${TOOLCHAINS[$GH_CPU_ARCH]}
1212

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
22

3-
MSVC_WINE=1
3+
export MSVC_WINE_PATH=/home/runner/msvc
44

55
source scripts/gha/build_common.sh

0 commit comments

Comments
 (0)