Skip to content

Commit c7e67a2

Browse files
committed
Fix the GitHub workflows
1 parent 78419c4 commit c7e67a2

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,11 @@ jobs:
3131

3232
- name: Build release version
3333
run: |
34-
if [[ "${{ matrix.os }}"x =~ '^ubuntu' ]]; then
35-
export CC=gcc
36-
fi
3734
mkdir packcc-${{ github.ref_name }} &&
3835
(
3936
mkdir build-release &&
4037
cd build-release &&
41-
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_BUILD_TYPE=Release .. &&
38+
cmake -DCMAKE_BUILD_TYPE=Release .. &&
4239
cmake --build . --config Release &&
4340
cmake --install . --config Release --prefix $PWD/../packcc-${{ github.ref_name }}
4441
) &&

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ jobs:
203203
(
204204
mkdir build-debug &&
205205
cd build-debug &&
206-
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_BUILD_TYPE=Debug .. &&
206+
cmake -DCMAKE_BUILD_TYPE=Debug .. &&
207207
cmake --build . --config Debug --target check
208208
)
209209
@@ -212,6 +212,6 @@ jobs:
212212
(
213213
mkdir build-release &&
214214
cd build-release &&
215-
cmake -DCMAKE_C_COMPILER=$CC -DCMAKE_BUILD_TYPE=Release .. &&
215+
cmake -DCMAKE_BUILD_TYPE=Release .. &&
216216
cmake --build . --config Release --target check
217217
)

0 commit comments

Comments
 (0)