summaryrefslogtreecommitdiff
path: root/.github/workflows/release-windows.yml
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2022-09-28 13:42:40 -0700
committerGitHub <noreply@github.com>2022-09-28 13:42:40 -0700
commiteb5c6b93543ca1423117045dbbfee0b6f653d392 (patch)
treebef912602dc22b2ac624eb5630450d8303e43e0f /.github/workflows/release-windows.yml
parent7708d205cb186f2b95d8daa2d8e0c655488fc34a (diff)
Make github CI build aarch64 binaries on release. (#2417)
Diffstat (limited to '.github/workflows/release-windows.yml')
-rw-r--r--.github/workflows/release-windows.yml13
1 files changed, 7 insertions, 6 deletions
diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml
index b3d69e57a..1b186b187 100644
--- a/.github/workflows/release-windows.yml
+++ b/.github/workflows/release-windows.yml
@@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
configuration: ['Release']
- platform: ['Win32', 'x64']
+ platform: ['Win32', 'x64', 'aarch64']
steps:
- uses: actions/checkout@v2.3.4
with:
@@ -22,17 +22,18 @@ jobs:
- name: setup-msbuild
uses: microsoft/setup-msbuild@v1
- # If we are building for aarch64 we want to build x64 first, so that all generated files are produced
- name: msbuild (x64 tools)
+ # If we are building for ARM64 we want to build x64 first, so that all generated files are produced
if: ${{ matrix.platform == 'aarch64' }}
run: |
- .\premake.bat vs2017 --arch=x64 --ignore-deps=slang-llvm,slang-glslang --no-progress=true
+ .\premake.bat vs2019 --arch=x64 --ignore-deps=slang-llvm,slang-glslang --no-progress=true
MSBuild.exe slang.sln -v:m -m -property:Configuration=Release -property:Platform=x64 -property:WindowsTargetPlatformVersion=10.0.19041.0
-
+ .\premake.bat vs2019 --arch=${{matrix.platform}} --ignore-deps=slang-llvm,slang-glslang --no-progress=true --skip-source-generation=true --deploy-slang-llvm=false --deploy-slang-glslang=false
# Do the premake for the actual target, downloading dependencies if necessary
- name: premake
+ if: ${{ matrix.platform != 'aarch64' }}
run:
- .\premake.bat vs2017 --enable-embed-stdlib=true --arch=${{matrix.platform}} --deps=true --no-progress=true
+ .\premake.bat vs2019 --enable-embed-stdlib=true --arch=${{matrix.platform}} --deps=true --no-progress=true
- name: msbuild
run:
MSBuild.exe slang.sln -v:m -m -property:Configuration=${{matrix.configuration}} -property:Platform=${{matrix.platform}} -property:WindowsTargetPlatformVersion=10.0.19041.0
@@ -42,7 +43,7 @@ jobs:
echo "achiving files..."
if ("${{matrix.platform}}" -eq "aarch64")
{
- $slangDeployPlatform = "win-aarch64"
+ $slangDeployPlatform = "win-arm64"
}
elseif ("${{matrix.platform}}" -eq "x64")
{