Skip to content

Commit 82bb565

Browse files
authored
Update msbuild_arm64.yaml
1 parent e3df882 commit 82bb565

File tree

1 file changed

+62
-29
lines changed

1 file changed

+62
-29
lines changed

.github/workflows/msbuild_arm64.yaml

Lines changed: 62 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,16 @@ jobs:
3232

3333
- name: Add MSBuild to PATH
3434
uses: microsoft/[email protected]
35-
with:
36-
msbuild-architecture: 'arm64'
37-
38-
# - name: Install html-help-workshop, sed, innosetup
39-
# run: |
40-
# choco install html-help-workshop
41-
# choco install sed
42-
# choco install innosetup
43-
44-
# - name: Restore NuGet packages
45-
# working-directory: ${{env.GITHUB_WORKSPACE}}
46-
# run: nuget restore ${{env.SOLUTION_FILE_PATH}}
35+
36+
- name: Install html-help-workshop, sed, innosetup
37+
run: |
38+
choco install html-help-workshop
39+
choco install sed
40+
choco install innosetup
41+
42+
- name: Restore NuGet packages
43+
working-directory: ${{env.GITHUB_WORKSPACE}}
44+
run: nuget restore ${{env.SOLUTION_FILE_PATH}}
4745

4846
- name: Stub
4947
working-directory: ${{env.GITHUB_WORKSPACE}}
@@ -52,26 +50,61 @@ jobs:
5250
#dir
5351
env
5452
53+
- name: Build win32
54+
working-directory: ${{env.GITHUB_WORKSPACE}}
55+
# Add additional options to the MSBuild command line here (like platform or verbosity level).
56+
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
57+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=Win32 ${{env.SOLUTION_FILE_PATH}}
58+
5559
- name: Build x64
5660
working-directory: ${{env.GITHUB_WORKSPACE}}
5761
# Add additional options to the MSBuild command line here (like platform or verbosity level).
5862
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
59-
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=ARM64 ${{env.SOLUTION_FILE_PATH}}
60-
61-
#- name: Build InnoSetup installers
62-
# working-directory: ${{env.GITHUB_WORKSPACE}}
63-
# run: |
64-
# cd Install\Win32
65-
# dir
66-
# ./MakePackage.bat
67-
68-
# - uses: actions/upload-artifact@v4
69-
# id: upload_step3
70-
# with:
71-
# name: x64Installer
72-
# path: ./Install/Win32/install_image/*_x64.exe
63+
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /p:Platform=x64 ${{env.SOLUTION_FILE_PATH}}
64+
65+
- name: Build InnoSetup installers
66+
working-directory: ${{env.GITHUB_WORKSPACE}}
67+
run: |
68+
cd Install\Win32
69+
dir
70+
./MakePackage.bat
71+
./MakePackage.bat WIN32
72+
73+
- name: VirusTotal Scan
74+
uses: crazy-max/ghaction-virustotal@v4
75+
id: virustotal_scan
76+
with:
77+
#vt_api_key: ${{ secrets.VT_API_KEY }}
78+
vt_api_key: effc35cbb3eb35975d5cf74eee8b75a1a1b12b6af0d66ed2a65cba48becaecc0
79+
files: |
80+
./Install/Win32/install_image/*_Win32.exe
81+
./Install/Win32/install_image/*_x64.exe
82+
83+
- name: Upload artefacts
84+
run: |
85+
echo "${{ steps.virustotal_scan.outputs.analysis }}" > ./Install/Win32/install_image/VirusTotalScan.txt
7386
74-
#- name: Upload results
75-
# run: |
76-
# echo 'x64Installer: Artifact ID is ${{ steps.upload_step3.outputs.artifact-id }}, URL is ${{ steps.upload_step3.outputs.artifact-url }}'
87+
- uses: actions/upload-artifact@v4
88+
id: upload_step1
89+
with:
90+
name: VirusTotalScan
91+
path: ./Install/Win32/install_image/VirusTotalScan.txt
92+
93+
- uses: actions/upload-artifact@v4
94+
id: upload_step2
95+
with:
96+
name: Win32Installer
97+
path: ./Install/Win32/install_image/*_Win32.exe
98+
99+
- uses: actions/upload-artifact@v4
100+
id: upload_step3
101+
with:
102+
name: x64Installer
103+
path: ./Install/Win32/install_image/*_x64.exe
104+
105+
- name: Upload results
106+
run: |
107+
echo 'VirusTotalScan: Artifact ID is ${{ steps.upload_step1.outputs.artifact-id }}, URL is ${{ steps.upload_step1.outputs.artifact-url }}'
108+
echo 'Win32Installer: Artifact ID is ${{ steps.upload_step2.outputs.artifact-id }}, URL is ${{ steps.upload_step2.outputs.artifact-url }}'
109+
echo 'x64Installer: Artifact ID is ${{ steps.upload_step3.outputs.artifact-id }}, URL is ${{ steps.upload_step3.outputs.artifact-url }}'
77110

0 commit comments

Comments
 (0)