Skip to content

Commit

Permalink
ci/win32: add arm64 build
Browse files Browse the repository at this point in the history
  • Loading branch information
kasper93 committed Aug 24, 2024
1 parent 64a0e31 commit 62c19ac
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,11 @@ jobs:
CCACHE_BASEDIR: ${{ github.workspace }}
CCACHE_DIR: "${{ github.workspace }}\\.ccache"
CCACHE_MAXSIZE: 500M
strategy:
matrix:
arch:
- "amd64"
- "arm64"
steps:
- name: Disable autocrlf
run: |
Expand Down Expand Up @@ -171,7 +176,7 @@ jobs:
$env:PATH = ($env:PATH -split ';' | Where-Object { $_ -ne 'C:\Program Files\LLVM\bin' -and `
$_ -ne 'C:\Strawberry\c\bin' }) -join ';'
Import-Module "$env:VS\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
Enter-VsDevShell -VsInstallPath $env:VS -SkipAutomaticLocation -DevCmdArguments "-arch=x64 -host_arch=x64"
Enter-VsDevShell -VsInstallPath $env:VS -SkipAutomaticLocation -DevCmdArguments "-arch=${{ matrix.arch }} -host_arch=amd64"
./ci/build-win32.ps1
- name: Print build log
Expand All @@ -185,7 +190,7 @@ jobs:
$env:PATH = ($env:PATH -split ';' | Where-Object { $_ -ne 'C:\Program Files\LLVM\bin' -and `
$_ -ne 'C:\Strawberry\c\bin' }) -join ';'
Import-Module "$env:VS\Common7\Tools\Microsoft.VisualStudio.DevShell.dll"
Enter-VsDevShell -VsInstallPath $env:VS -SkipAutomaticLocation -DevCmdArguments "-arch=x64 -host_arch=x64"
Enter-VsDevShell -VsInstallPath $env:VS -SkipAutomaticLocation -DevCmdArguments "-arch=${{ matrix.arch }} -host_arch=amd64"
meson test -C build mpv:
- name: Print meson test log
Expand All @@ -195,7 +200,7 @@ jobs:
- uses: actions/upload-artifact@v4
with:
name: mpv-x86_64-windows-msvc
name: mpv-${{ matrix.arch }}-windows-msvc
path: |
build/mpv.???
build/vulkan-*.dll
Expand All @@ -206,7 +211,7 @@ jobs:
if: always()
with:
path: ${{ env.CCACHE_DIR }}
key: x86_64-windows-msvc-${{ steps.get_time.outputs.timestamp }}
key: ${{ matrix.arch }}-windows-msvc-${{ steps.get_time.outputs.timestamp }}

macos:
runs-on: ${{ matrix.os }}
Expand Down

0 comments on commit 62c19ac

Please sign in to comment.