-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.22 KB
/
testQTdesktop_wf.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: testQTdesktop_wf
on:
workflow_call:
inputs:
suite:
required: false
type: string
jobs:
build-qt-desktop:
uses: ./.github/workflows/buildQmake_wf.yml
with:
qmakeflags: "CONFIG+=test"
binaryfilename: LukHudX_testes
test-qt-desktop:
needs: [build-qt-desktop]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Fetch artifacts from build-qt-desktop
uses: dawidd6/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
path: bin
workflow: ${{ github.event.workflow_run.workflow_id }}
workflow_conclusion: completed
name: LukHudX_testes
# open ssh connection to the server
- name: Setup permissions
run: chmod u+x $GITHUB_WORKSPACE/bin/LukHudX_testes
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: qt6-base-dev qt5-qmake qtbase5-dev libqt6serialport6 libqt6serialport6-dev libqt5serialport5 libqt5serialport5-dev nlohmann-json3-dev socat gengetopt
version: 1.0
- name: Run tests
run: cd $GITHUB_WORKSPACE/bin && ./LukHudX_testes -platform offscreen