File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change 48
48
uses : lukka/get-cmake@latest
49
49
50
50
- name : Configure CMake
51
- run : |
52
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_ARCHITECTURE_ID=${{ matrix.config.arch }}
53
-
54
- - name : Build
55
- run : |
56
- cmake --build build --config Release
51
+ run : make build
52
+ env :
53
+ CMAKE_FLAGS : -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_ARCHITECTURE_ID=${{ matrix.config.arch }}
57
54
58
55
- name : Archive Server Production Artifacts
59
56
uses : actions/upload-artifact@v3
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ BUILD_DIR = build
2
2
REPO = ghcr.io/janekbaraniewski/ser2net2ser
3
3
VERSION ?= latest
4
4
COMMIT_HASH ?= $(shell git rev-parse --short HEAD)
5
+ CMAKE_FLAGS ?= -DCMAKE_BUILD_TYPE=Release
5
6
6
7
help : # # Show this help message
7
8
@echo " Usage: make [target]"
@@ -14,7 +15,7 @@ clean: ## Clean build directory
14
15
15
16
build : # # Build with cmake
16
17
build : clean
17
- @cmake -S . -B build
18
+ @cmake -S . -B build $( CMAKE_FLAGS )
18
19
@cmake --build build
19
20
20
21
test : # # Build and test
You can’t perform that action at this time.
0 commit comments