-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (44 loc) · 1.52 KB
/
ccpp.yml
File metadata and controls
58 lines (44 loc) · 1.52 KB
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Build
# Triggered when code is pushed to any branch in a repository
on: push
jobs:
linux:
runs-on: ubuntu-latest
container:
image: docker://jgeudens/qt-linux:6.8.3_build_1
steps:
- uses: actions/checkout@v6.0.0
- name: Start display server
run: bash /start.sh &
- name: Configure safe directory for git
run: git config --global --add safe.directory ${GITHUB_WORKSPACE}
- name: Update Modules and Build
run: bash scripts/build_linux.sh
# - name: Deploy
# run: bash scripts/deploy_linux.sh
# - uses: actions/upload-artifact@v7.0.0
# with:
# name: modbusscope-linux
# path: ModbusScope*.AppImage
windows:
runs-on: windows-2022
steps:
- uses: actions/checkout@v6.0.0
- name: Install Qt installer
run: pip3 install aqtinstall==3.3.0
# Cache go build cache, used to speedup go test
- name: Qt Build Cache
uses: actions/cache@v5.0.0
id: cache
with:
path: ${{ github.workspace }}\Qt
key: ${{ runner.os }}-qt-build-${{ hashFiles('scripts\setup_windows.bat') }}
- name: Setup, build and deploy
shell: cmd
run: scripts\full_build_and_deploy_windows.bat '${{ steps.cache.outputs.cache-hit }}' ${{ github.workspace }}\Qt
# - uses: actions/upload-artifact@v7.0.0
# with:
# name: modbusscope-windows
# path: |
# ModbusScope.zip
# ModbusScope_setup.exe