Skip to content

Commit a58aaba

Browse files
committed
Run cmake outside of docker
1 parent 99cba70 commit a58aaba

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

.github/workflows/release-linux-glibc-2-17.yml

+11-10
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,14 @@ jobs:
1313
submodules: 'true'
1414
fetch-depth: '0'
1515

16+
- run: |
17+
cmake \
18+
--preset default --fresh \
19+
-DCMAKE_BUILD_TYPE=Release \
20+
-DSLANG_SLANG_LLVM_FLAVOR=DISABLE \
21+
-DSLANG_EMBED_STDLIB=1 \
22+
-G 'Unix Makefiles'
23+
1624
# build the binary in docker image
1725
- name: Run the build process with Docker
1826
uses: addnab/docker-run-action@v3
@@ -22,18 +30,11 @@ jobs:
2230
run: |
2331
source /opt/rh/devtoolset-9/enable
2432
25-
wget https://cmake.org/files/v3.30/cmake-3.30.0.tar.gz
26-
yum install -y openssl-devel
27-
tar zxvf cmake-3.*
28-
cd cmake-3.*
29-
./bootstrap --prefix=/usr/local
30-
make -j$(nproc)
31-
make install
32-
3333
cd /home/app
3434
git config --global --add safe.directory /home/app
35-
cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=DISABLE -DSLANG_EMBED_STDLIB=1 -G 'Unix Makefiles'
36-
cmake --build --preset release -j
35+
36+
cd build
37+
make -j$(nproc)
3738
3839
- name: Package Slang
3940
id: package

0 commit comments

Comments
 (0)