Skip to content

Commit

Permalink
Merge pull request #1710 from atsign-foundation/cpswan-ninja-build
Browse files Browse the repository at this point in the history
ci: Use Ninja for musl builds
  • Loading branch information
cpswan authored Jan 30, 2025
2 parents 54ea092 + 9f7214a commit ee7ec13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/c_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ jobs:
run:
working-directory: ./packages/c
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions packages/c/sshnpd/tools/Dockerfile.musl
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ WORKDIR /sshnpd
COPY . .
ARG TARGETARCH
RUN set -eux; \
apk add clang cmake coreutils git make python3; \
apk add clang cmake coreutils git make ninja python3; \
case "${TARGETARCH}" in \
amd64) ARCH="x64";;\
*) ARCH=${TARGETARCH};; \
esac; \
cd /sshnpd/sshnpd; \
cmake -B build -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=clang \
cmake -B build -G Ninja -S . -DBUILD_SHARED_LIBS=off -DCMAKE_C_COMPILER=clang \
-DCMAKE_C_FLAGS="-Wno-error -pthread" -DCMAKE_EXE_LINKER_FLAGS="-static"; \
cmake --build build; \
mkdir /tarball; \
Expand Down

0 comments on commit ee7ec13

Please sign in to comment.