Skip to content

Commit 56bcd83

Browse files
committed
ci: update macOS build workflow to include artifact upload. Build in release
1 parent f4e7901 commit 56bcd83

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches: [master, feature/**]
66
pull_request:
77
branches: [master]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
812

913
jobs:
1014
build-macos:
@@ -13,7 +17,14 @@ jobs:
1317
- uses: actions/checkout@v4
1418

1519
- name: Configure
16-
run: cmake -B build
20+
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
1721

1822
- name: Build
19-
run: cmake --build build
23+
run: cmake --build build --config Release
24+
25+
- name: Upload workflow artifact
26+
uses: actions/upload-artifact@v4
27+
with:
28+
name: psn-macos-release
29+
path: build/examples/psn_*
30+
if-no-files-found: error

0 commit comments

Comments
 (0)