Skip to content

Commit

Permalink
Fixup build
Browse files Browse the repository at this point in the history
  • Loading branch information
janekbaraniewski committed Apr 28, 2024
1 parent 5d45c6d commit 5e91eeb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,9 @@ jobs:
uses: lukka/get-cmake@latest

- name: Configure CMake
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_ARCHITECTURE_ID=${{ matrix.config.arch }}
- name: Build
run: |
cmake --build build --config Release
run: make build
env:
CMAKE_FLAGS: -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_ARCHITECTURE_ID=${{ matrix.config.arch }}

- name: Archive Server Production Artifacts
uses: actions/upload-artifact@v3
Expand Down
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ BUILD_DIR = build
REPO = ghcr.io/janekbaraniewski/ser2net2ser
VERSION ?= latest
COMMIT_HASH ?= $(shell git rev-parse --short HEAD)
CMAKE_FLAGS ?= -DCMAKE_BUILD_TYPE=Release

help: ## Show this help message
@echo "Usage: make [target]"
Expand All @@ -14,7 +15,7 @@ clean: ## Clean build directory

build: ## Build with cmake
build: clean
@cmake -S . -B build
@cmake -S . -B build $(CMAKE_FLAGS)
@cmake --build build

test: ## Build and test
Expand Down

0 comments on commit 5e91eeb

Please sign in to comment.