Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions Dockerfile.test.alpine
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
FROM alpine:3.21
RUN apk add --no-cache cmake make g++ zsh bash jq
WORKDIR /src
COPY CMakeLists.txt .
COPY cmake cmake
COPY src src
COPY test test
COPY vendor vendor
COPY completion completion
COPY VERSION VERSION
COPY package.json package.json
COPY package-lock.json package-lock.json
COPY action.yml action.yml
COPY README.markdown README.markdown
RUN cmake -S . -B ./build \
-DCMAKE_BUILD_TYPE:STRING=Release \
-DJSONSCHEMA_TESTS:BOOL=ON
RUN cmake --build ./build --config Release --parallel 4
RUN cmake --install ./build --prefix ./build/dist --config Release --verbose \
--component sourcemeta_jsonschema
RUN cd ./build && ctest --build-config Release --output-on-failure --parallel
RUN cpack --config build/CPackConfig.cmake -B build/out -C Release
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ CTEST = ctest
CPACK = cpack
NPM = npm
NODE = node
DOCKER = docker

# Options
PRESET = Debug
Expand Down Expand Up @@ -52,5 +53,8 @@ npm-pack: node_modules .always
npm-publish: npm-pack
$(NPM) publish

alpine: .always
$(DOCKER) build --progress plain --file Dockerfile.test.alpine .

# For NMake, which doesn't support .PHONY
.always:
1 change: 1 addition & 0 deletions vendorpull.mask
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ eslint.config.mjs
package.json
package-lock.json
npm
Dockerfile.test.alpine