|
8 | 8 | workflow_dispatch:
|
9 | 9 | inputs:
|
10 | 10 | branch:
|
11 |
| - description: 'Target branch' |
| 11 | + description: 'Target branch' |
12 | 12 | required: true
|
13 | 13 | default: 'master'
|
14 | 14 |
|
15 | 15 | jobs:
|
16 | 16 | build_windows:
|
17 |
| - |
| 17 | + |
18 | 18 | runs-on: windows-latest
|
19 | 19 |
|
20 | 20 | steps:
|
21 | 21 |
|
22 | 22 | - uses: ilammy/msvc-dev-cmd@v1
|
23 |
| - |
| 23 | + |
24 | 24 | # Creation of the ..\downloads directory
|
25 | 25 | - name: Creation of the "..\downloads" directory
|
26 | 26 | run: mkdir ..\downloads
|
27 | 27 | shell: cmd
|
28 | 28 | working-directory: .\
|
29 |
| - |
| 29 | + |
30 | 30 | # Creation of the ..\tools directory
|
31 | 31 | - name: Creation of the "..\tools" directory
|
32 | 32 | run: mkdir ..\tools
|
33 | 33 | shell: cmd
|
34 | 34 | working-directory: .\
|
35 |
| - |
| 35 | + |
36 | 36 | # Installation of jom
|
37 | 37 | - name: Installation of the jom
|
38 | 38 | run: |
|
39 | 39 | Invoke-WebRequest http://download.qt.io/official_releases/jom/jom.zip -OutFile ..\downloads\jom.zip
|
40 |
| - Expand-Archive '..\downloads\jom.zip' '..\tools\jom' |
| 40 | + Expand-Archive '..\downloads\jom.zip' '..\tools\jom' |
41 | 41 | shell: powershell
|
42 |
| - |
| 42 | + |
43 | 43 | # Add jom to path
|
44 | 44 | - name: Add jom to path
|
45 | 45 | run: |
|
46 | 46 | echo "D:/a/${{ github.event.repository.name }}/tools/jom/" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
47 | 47 | shell: powershell
|
48 | 48 |
|
49 |
| - # Checkout dlt-viewer's revision v2.24.0 |
| 49 | + # Install Java 11 |
| 50 | + - name: Install Java 11 |
| 51 | + uses: actions/setup-java@v4 |
| 52 | + with: |
| 53 | + distribution: 'temurin' |
| 54 | + java-version: '11' |
| 55 | + |
| 56 | + # Install cmake version 3.28.3 |
| 57 | + - name: Setup cmake |
| 58 | + uses: jwlawson/actions-setup-cmake@v1.14 |
| 59 | + with: |
| 60 | + cmake-version: '3.28.3' |
| 61 | + |
| 62 | + # Checkout dlt-viewer's revision v2.25.0 |
50 | 63 | - name: Checkout of the dlt-viewer
|
51 | 64 | uses: actions/checkout@v3
|
52 | 65 | with:
|
53 | 66 | repository: GENIVI/dlt-viewer
|
54 |
| - ref: ebb3c355bc0edf2b6c3be84452b8afa4d1a82641 |
| 67 | + ref: v2.25.0 |
55 | 68 |
|
56 | 69 | # Checkout project's revision, which is pushed
|
57 | 70 | - name: Checkout of the project
|
|
60 | 73 | repository: svlad-90/${{ github.event.repository.name }}
|
61 | 74 | path: .\plugin\${{ github.event.repository.name }}
|
62 | 75 | ref: ${{ github.ref }}
|
63 |
| - |
| 76 | + |
64 | 77 | # Adjust dlt-viewer's plugin CMakeLists.txt file to sub-include the plugin
|
65 | 78 | - name: Patch dlt-viewer's plugin CMakeLists.txt
|
66 | 79 | run: Add-Content .\CMakeLists.txt "`nadd_subdirectory(${{ github.event.repository.name }}/dltmessageanalyzerplugin/src)"
|
@@ -89,14 +102,14 @@ jobs:
|
89 | 102 | cmake ..\${{ github.event.repository.name }}\ "-GCodeBlocks - NMake Makefiles JOM" "-DCMAKE_BUILD_TYPE:STRING=Release" "-DCMAKE_PREFIX_PATH:STRING=${{ github.workspace }}/Qt5/Qt/5.15.0/msvc2019_64" "-DQT_QMAKE_EXECUTABLE:STRING=${{ github.workspace }}/Qt5/Qt/5.15.0/msvc2019_64/bin/qmake.exe"
|
90 | 103 | shell: cmd
|
91 | 104 | working-directory: ..\build
|
92 |
| - |
| 105 | + |
93 | 106 | #List files in build folder
|
94 | 107 | - name: List files in build folder
|
95 | 108 | run: |
|
96 | 109 | dir
|
97 | 110 | shell: cmd
|
98 | 111 | working-directory: ..\build
|
99 |
| - |
| 112 | + |
100 | 113 | # Build of the project
|
101 | 114 | - name: Jom
|
102 | 115 | run: |
|
|
0 commit comments