Skip to content

Commit

Permalink
ci: os specific compiler and flags
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Jul 25, 2024
1 parent d8a247c commit ed0b8ca
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/c_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,22 @@ jobs:
output-name: sshnp-linux-x64
ext: ""
bundle: "shell"
compiler: "gcc"
flags:
"-Wno-error -Wno-calloc-transposed-args -Wno-float-conversion
-pthread -lrt"
- os: macos-13
output-name: sshnp-macos-x64
ext: ""
bundle: "shell"
compiler: "clang"
flags: "-Wno-error -pthread"
- os: macos-14
output-name: sshnp-macos-arm64
ext: ""
bundle: "shell"
compiler: "clang"
flags: "-Wno-error -pthread"
# - os: windows-latest
# output-name: sshnp-windows-x64
# ext: '.exe'
Expand All @@ -45,7 +53,7 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# compile binaries
- run: |
cmake -B build -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=gcc -DCMAKE_C_FLAGS="-Wno-error -Wno-calloc-transposed-args -Wno-float-conversion -pthread -lrt"
cmake -B build -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=${{ matrix.compiler }} -DCMAKE_C_FLAGS="${{matrix.flags}}"
cmake --build build
mkdir tarball
mv build/sshnpd .
Expand Down

0 comments on commit ed0b8ca

Please sign in to comment.