forked from COVESA/dlt-viewer
-
Notifications
You must be signed in to change notification settings - Fork 0
103 lines (99 loc) · 2.71 KB
/
BuildPR.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: PullRequest
on:
push:
branches:
- master
pull_request:
jobs:
buildMac:
name: Build macOS
runs-on: ${{ matrix.macos }}
strategy:
fail-fast: false
matrix:
macos: [ macos-13 ]
xcode: [ Xcode_15.2 ]
include:
- xcode: Xcode
macos: macos-14
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Investigate available XCode versions
run: ls -n /Applications/ | grep Xcode*
- name: Set XCode Version
run: |
sudo xcode-select -s /Applications/${{ matrix.xcode }}.app
xcodebuild -version
xcode-select --print-path
- name: Install build environment
run: scripts/darwin/install.sh
- name: Show cmake version
run: cmake --version
- name: Build project
run: scripts/darwin/build.sh
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-${{ matrix.macos }}-x86_64
path: build/dist/DLTViewer*.tgz
buildLinux:
name: Build ${{ matrix.ubuntu }}
strategy:
matrix:
ubuntu: [ ubuntu-20.04 ]
runs-on: ${{ matrix.ubuntu }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: install build environment
run: scripts/linux/install.sh
- name: Build project
run: scripts/linux/build.sh
- name: Make artifact executable
run: chmod -R +x build/dist
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-linux-x86_64
path: build/dist/DLTViewer*.tgz
buildWindows:
name: Build Windows
strategy:
matrix:
task: [ sdk ]
runs-on: windows-2019
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Install qt
uses: jurplel/install-qt-action@v4
with:
version: 5.15.2
- name: Build with CMake ${{ matrix.task }}
run: >
$env:WORKSPACE=$env:GITHUB_WORKSPACE;
$env:QTDIR=$env:Qt5_DIR.Replace('/','\');
$env:CPACK_7Z="true";
$env:CPACK_NSIS="true";
./build_sdk_windows_qt5_MSVC_cmake.bat
- name: Archive artifact
uses: actions/upload-artifact@v4
if: ${{ success() }}
with:
name: DLTViewer-windows-x86_64
path: |
build/dist/DLTViewer*.7z
build/dist/DLTViewer*.exe
build/dist/*.md