File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ FROM alpine:3.21
2+ RUN apk add --no-cache cmake make g++ zsh bash jq
3+ WORKDIR /src
4+ COPY CMakeLists.txt .
5+ COPY cmake cmake
6+ COPY src src
7+ COPY test test
8+ COPY vendor vendor
9+ COPY completion completion
10+ COPY VERSION VERSION
11+ COPY package.json package.json
12+ COPY package-lock.json package-lock.json
13+ COPY action.yml action.yml
14+ COPY README.markdown README.markdown
15+ RUN cmake -S . -B ./build \
16+ -DCMAKE_BUILD_TYPE:STRING=Release \
17+ -DJSONSCHEMA_TESTS:BOOL=ON
18+ RUN cmake --build ./build --config Release --parallel 4
19+ RUN cmake --install ./build --prefix ./build/dist --config Release --verbose \
20+ --component sourcemeta_jsonschema
21+ RUN cd ./build && ctest --build-config Release --output-on-failure --parallel
22+ RUN cpack --config build/CPackConfig.cmake -B build/out -C Release
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ CTEST = ctest
44CPACK = cpack
55NPM = npm
66NODE = node
7+ DOCKER = docker
78
89# Options
910PRESET = Debug
@@ -52,5 +53,8 @@ npm-pack: node_modules .always
5253npm-publish : npm-pack
5354 $(NPM ) publish
5455
56+ alpine : .always
57+ $(DOCKER ) build --progress plain --file Dockerfile.test.alpine .
58+
5559# For NMake, which doesn't support .PHONY
5660.always :
Original file line number Diff line number Diff line change @@ -32,3 +32,4 @@ eslint.config.mjs
3232package.json
3333package-lock.json
3434npm
35+ Dockerfile.test.alpine
You can’t perform that action at this time.
0 commit comments