ci: use macos-13 #1079
Workflow file for this run
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: Windows UWP CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
arch: [ Win32, x64, ARM, ARM64 ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: CMake | |
run: | | |
cmake -B build -DCMAKE_BUILD_TYPE=Release -G "Visual Studio 17 2022" -A ${{ matrix.arch }} -DCMAKE_SYSTEM_NAME=WindowsStore -DCMAKE_SYSTEM_VERSION=10.0.22000.0 -DCMAKE_TOOLCHAIN_FILE=%VCPKG_INSTALLATION_ROOT%\scripts\buildsystems\vcpkg.cmake | |
cmake --build build --config Release --parallel 2 | |
shell: cmd | |
- uses: ilammy/msvc-dev-cmd@v1 | |
- name: Package app | |
run: | | |
mkdir build\artifact | |
cd build\AppPackages\flycast\flycast_*_Test | |
mkdir tmp | |
ren *.msix flycast.msix | |
makeappx.exe unpack /p .\flycast.msix /d tmp | |
copy ..\..\..\Release\*.dll tmp | |
makeappx pack /d tmp /p ..\..\..\artifact\flycast.appx | |
- name: Sign app | |
run: signtool sign /f shell\uwp\sign_cert.pfx /p '${{ secrets.SIGN_CERT_PWD }}' /v /fd SHA256 build\artifact\flycast.appx | |
if: github.repository == 'flyinghead/flycast' && github.event_name == 'push' | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: flycast-uwp-${{ matrix.arch }} | |
path: build/artifact | |
- name: Configure AWS Credentials | |
id: aws-credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
aws-access-key-id: AKIAJOZQS4H2PHQWYFCA | |
aws-secret-access-key: ${{ secrets.S3_SECRET_KEY }} | |
aws-region: us-east-2 | |
if: github.repository == 'flyinghead/flycast' && github.event_name == 'push' && matrix.arch == 'x64' | |
- name: Upload to S3 | |
run: aws s3 sync build/artifact s3://flycast-builds/xbox/${GITHUB_REF#refs/}-$GITHUB_SHA --acl public-read --follow-symlinks | |
shell: bash | |
if: ${{ steps.aws-credentials.outputs.aws-account-id != '' }} |