Skip to content

Commit

Permalink
ci: try using gcc instead of clang for c builds
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierChanth committed Jul 25, 2024
1 parent b0c91b8 commit d8a247c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/c_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
# compile binaries
- run: |
cmake -B build -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=clang -DCMAKE_C_FLAGS="-Wno-error -pthread -lrt"
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 --build build
mkdir tarball
mv build/sshnpd .
# zip the build
- if: ${{ matrix.os == 'macOS-latest' || matrix.os == 'macos-14'}}
- if: ${{ matrix.os == 'macos-13' || matrix.os == 'macos-14'}}
run:
ditto -c -k --keepParent sshnpd tarball/${{ matrix.output-name }}.zip
- if: ${{ matrix.os == 'ubuntu-latest' }}
Expand Down

0 comments on commit d8a247c

Please sign in to comment.