Skip to content

Commit 5cb8e76

Browse files
flatpak test build from dir, not git
1 parent c943de2 commit 5cb8e76

File tree

4 files changed

+29
-4
lines changed

4 files changed

+29
-4
lines changed

.github/workflows/cmake.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CMake
22

33
on:
44
push:
5-
branches: [ "main" ]
5+
branches: [ "main", "development" ]
66
pull_request:
77
branches: [ "main" ]
88

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16-
branches: [ "main" ]
16+
branches: [ "main", "development" ]
1717
pull_request:
1818
# The branches below must be a subset of the branches above
1919
branches: [ "main" ]

.github/workflows/flatpak_main.yml renamed to .github/workflows/flatpak_test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
push:
3-
branches: [main]
3+
branches: [ "main", "development" ]
44
pull_request:
55
name: Flatpak_test
66
jobs:
@@ -16,5 +16,5 @@ jobs:
1616
name: "Build"
1717
with:
1818
bundle: test_modbus-tcp-client-shm.flatpak
19-
manifest-path: network.koesling.modbus-tcp-client-shm.yml
19+
manifest-path: network.koesling.test-modbus-tcp-client-shm.yml
2020
cache-key: flatpak-builder-${{ github.sha }}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
id: network.koesling.test-modbus-tcp-client-shm
2+
runtime: org.freedesktop.Platform
3+
runtime-version: '21.08'
4+
sdk: org.freedesktop.Sdk
5+
command: Modbus_TCP_client_shm
6+
finish-args:
7+
- --device=shm
8+
- --share=network
9+
modules:
10+
- name: Modbus_TCP_client_shm
11+
buildsystem: simple
12+
build-commands:
13+
# build
14+
- mkdir build
15+
- cmake -B build . -DCMAKE_BUILD_TYPE=Release -DCLANG_FORMAT=OFF -DCOMPILER_WARNINGS=OFF
16+
- cmake --build build
17+
18+
# install
19+
- mkdir -p "${FLATPAK_DEST}/bin"
20+
- cp build/Modbus_TCP_client_shm ${FLATPAK_DEST}/bin
21+
- ls -lah ${FLATPAK_DEST}
22+
sources:
23+
- type: dir
24+
path: .
25+

0 commit comments

Comments
 (0)