Skip to content

Commit a0d7077

Browse files
committed
fix failing artifact upload + build in release mode + run CI on PR
1 parent d836ad2 commit a0d7077

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build-ubuntu.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build (Ubuntu)
22
on:
33
push:
4+
pull_request:
5+
types: [ opened, edited, reopened ]
46
jobs:
57
build-project:
68
name: Build Project
@@ -11,9 +13,14 @@ jobs:
1113

1214
- name: Build Project
1315
uses: threeal/[email protected]
16+
with:
17+
options: |
18+
CMAKE_BUILD_TYPE=Release
19+
build-args: |
20+
--config Release
1421
1522
- name: Deploy Project
1623
uses: actions/upload-artifact@v4
1724
with:
18-
name: run-cppcheck
25+
name: run-cppcheck-linux-x86_64
1926
path: build/run-cppcheck

.github/workflows/build-windows.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build (Windows)
22
on:
33
push:
4+
pull_request:
5+
types: [ opened, edited, reopened ]
46
jobs:
57
build-project:
68
name: Build Project
@@ -11,9 +13,14 @@ jobs:
1113

1214
- name: Build Project
1315
uses: threeal/[email protected]
16+
with:
17+
options: |
18+
CMAKE_BUILD_TYPE=Release
19+
build-args: |
20+
--config Release
1421
1522
- name: Deploy Project
1623
uses: actions/upload-artifact@v4
1724
with:
1825
name: run-cppcheck-windows
19-
path: build/run-cppcheck.exe
26+
path: build\Release\run-cppcheck.exe

0 commit comments

Comments
 (0)