Skip to content

Commit 784a5b0

Browse files
authored
Create MSBuild_ARM64
1 parent 25063bc commit 784a5b0

File tree

1 file changed

+75
-0
lines changed

1 file changed

+75
-0
lines changed

.github/workflows/MSBuild_ARM64

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
6+
name: MSBuild_ARM64
7+
8+
on:
9+
push:
10+
branches: [ "master" ]
11+
12+
env:
13+
# Path to the solution file relative to the root of the project.
14+
SOLUTION_FILE_PATH: ./Builds/MsVc2022.win/OdbcFb.sln
15+
16+
# Configuration type to build.
17+
# You can convert this to a build matrix if you need coverage of multiple configuration types.
18+
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
19+
BUILD_CONFIGURATION: Release
20+
21+
INNO_SETUP_PATH: 'C:\Program Files (x86)\Inno Setup 6'
22+
23+
permissions:
24+
contents: read
25+
26+
jobs:
27+
build:
28+
runs-on: windows-11-arm
29+
30+
steps:
31+
- uses: actions/checkout@v3
32+
33+
- name: Add MSBuild to PATH
34+
uses: microsoft/[email protected]
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}}
45+
46+
- name: Stub
47+
working-directory: ${{env.GITHUB_WORKSPACE}}
48+
run: |
49+
#cd "C:\Program Files (x86)\"
50+
#dir
51+
env
52+
53+
- name: Build x64
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=x64 ${{env.SOLUTION_FILE_PATH}}
58+
59+
- name: Build InnoSetup installers
60+
working-directory: ${{env.GITHUB_WORKSPACE}}
61+
run: |
62+
cd Install\Win32
63+
dir
64+
./MakePackage.bat
65+
66+
- uses: actions/upload-artifact@v4
67+
id: upload_step3
68+
with:
69+
name: x64Installer
70+
path: ./Install/Win32/install_image/*_x64.exe
71+
72+
- name: Upload results
73+
run: |
74+
echo 'x64Installer: Artifact ID is ${{ steps.upload_step3.outputs.artifact-id }}, URL is ${{ steps.upload_step3.outputs.artifact-url }}'
75+

0 commit comments

Comments
 (0)