Skip to content

Commit 8abe874

Browse files
authored
Refactor compilation commands in CI workflow
Fix compilation command for macOS by removing redundant flags.
1 parent 7c09abf commit 8abe874

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222

2323
- name: Compile
2424
run: |
25-
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
26-
g++ cppsp_compiler.cpp -Os -s -std=c++17 -o cppsp_compiler_linux -static
25+
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
26+
g++ cppsp_compiler.cpp -Os -s -std=c++17 -o cppsp_compiler_linux -static
2727
else
28-
clang++ cppsp_compiler.cpp -Os -s -std=c++17 -o cppsp_compiler_mac -static
29-
fi
28+
clang++ cppsp_compiler.cpp -Os -std=c++17 -o cppsp_compiler_mac
29+
fi
3030
3131
- name: Upload artifact
3232
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)