Skip to content

Commit 9216dac

Browse files
authored
Refactor compiler installation and compilation steps
Updated compiler installation and compilation commands for better optimization.
1 parent 0fdcf55 commit 9216dac

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717

18-
- name: Install compiler (Linux)
19-
if: matrix.os == 'ubuntu-latest'
20-
run: sudo apt-get update && sudo apt-get install -y g++
18+
# - name: Install compiler (Linux)
19+
# if: matrix.os == 'ubuntu-latest'
20+
#run: sudo apt-get update && sudo apt-get install -y g++
2121

2222
- name: Compile
2323
run: |
2424
if [[ "${{ matrix.os }}" == "ubuntu-latest" ]]; then
25-
g++ cppsp_compiler.cpp -static -Os -std=c++17 -o cppsp_compiler_linux
25+
g++ cppsp_compiler.cpp -Os -s -std=c++17 -o cppsp_compiler_linux -static
2626
else
27-
clang++ cppsp_compiler.cpp -static -Os -std=c++17 -o cppsp_compiler_mac
27+
clang++ cppsp_compiler.cpp -Os -s -std=c++17 -o cppsp_compiler_mac -static
2828
fi
2929
3030
- name: Upload artifact

0 commit comments

Comments
 (0)