446 fixed aarch64 cross compiling #1217
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: MSBuild | |
on: | |
push: # Keep empty to run on each branch when push the code. Otherwise, use branches: [ master ] | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
env: | |
# Path to the solution file relative to the root of the project. | |
SOLUTION_FILE_PATH: . | |
# Configuration type to build. | |
# You can convert this to a build matrix if you need coverage of multiple configuration types. | |
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix | |
BUILD_CONFIGURATION: Release | |
permissions: | |
contents: read | |
jobs: | |
build-tests: | |
name: ${{matrix.config.name}} | |
runs-on: windows-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
config: # Create matrix with combinations | |
# Compile for 32-bit platform, enabled AREG extensions and logs | |
- {name: MSBuild-Win32-ext-log, platform: Win32, extend: 1, logs: 1} | |
# Compile for 32-bit platform, enabled AREG extensions and no logs | |
- {name: MSBuild-Win32-ext-nolog, platform: Win32, extend: 1, logs: 0} | |
# Compile for 32-bit platform, disable AREG extensions and logs | |
- {name: MSBuild-Win32-noext-log, platform: Win32, extend: 0, logs: 1} | |
# Compile for 32-bit platform, disable AREG extensions and no logs | |
- {name: MSBuild-Win32-noext-nolog, platform: Win32, extend: 0, logs: 0} | |
# Compile for 32-bit platform, enabled AREG extensions and logs | |
- {name: MSBuild-x64-ext-log, platform: x64, extend: 1, logs: 1} | |
# Compile for 32-bit platform, enabled AREG extensions and no logs | |
- {name: MSBuild-x64-ext-nolog, platform: x64, extend: 1, logs: 0} | |
# Compile for 32-bit platform, disable AREG extensions and logs | |
- {name: MSBuild-x64-noext-log, platform: x64, extend: 0, logs: 1} | |
# Compile for 32-bit platform, disable AREG extensions and no logs | |
- {name: MSBuild-x64-noext-nolog, platform: x64, extend: 0, logs: 0} | |
steps: | |
- name: Checkout AREG engine (AREG SDK) source codes | |
uses: actions/checkout@v4 | |
- name: Setup Java JDK to run code generator | |
uses: actions/[email protected] | |
with: | |
java-version: 17 | |
java-package: jre | |
distribution: temurin | |
- name: Add MSBuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Restore NuGet packages | |
working-directory: ${{github.workspace}} | |
run: nuget restore ${{env.SOLUTION_FILE_PATH}} | |
- name: Build areg-sdk solution. | |
working-directory: ${{github.workspace}} | |
# Add additional options to the MSBuild command line here (like platform or verbosity level). | |
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference | |
run: msbuild /m /property:Configuration=${{env.BUILD_CONFIGURATION}} /property:Platform=${{matrix.config.platform}} /property:AregExtended=${{matrix.config.extend}} /property:AregLogs=${{matrix.config.logs}} ${{env.SOLUTION_FILE_PATH}} -t:restore,build -p:RestorePackagesConfig=true |