Skip to content

Commit 78cf44e

Browse files
authored
Update cmake-linux-x86.yml
1 parent 359d9c0 commit 78cf44e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/cmake-linux-x86.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,19 @@ jobs:
2525

2626
- name: Setup LLVM
2727
uses: ZhongRuoyu/setup-llvm@5bee61a33dd6160cb4dd652cd80d56ff3654535f
28+
29+
- name: Set up GCC
30+
uses: egor-tensin/setup-gcc@v1
31+
with:
32+
version: latest
33+
platform: x64
2834

2935
- name: Configure CMake
3036
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
3137
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
3238
run: |
39+
export CC=/usr/local/bin/gcc
40+
export CXX=/usr/local/bin/g++
3341
mkdir ${{github.workspace}}/build
3442
cd ${{github.workspace}}/build
3543
cmake -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DLLVM_TARGETS_TO_BUILD="X86" -G Ninja ../src

0 commit comments

Comments
 (0)