add windows CI builds (#82)

This commit is contained in:
Nikhil Narayana 2023-08-19 23:33:19 -04:00 committed by GitHub
commit 8d75dc300c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,98 +16,73 @@ on:
- "**.ini" - "**.ini"
jobs: jobs:
# windows: windows:
# strategy: strategy:
# fail-fast: false fail-fast: false
# matrix: matrix:
# build_type: [Netplay, Playback] build_type: [Netplay, Playback]
# include: include:
# - build_type: Netplay - build_type: Netplay
# artifact_name: windows64-netplay artifact_name: windows64-netplay
# build_config: -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DQt5_DIR:STRING="D:\a\dolphin\dolphin\Externals\Qt\Qt5.15.0\msvc2019_64\lib\cmake\Qt5" -DSLIPPI_PLAYBACK=false build_config: -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DSLIPPI_PLAYBACK=false
# - build_type: Playback - build_type: Playback
# artifact_name: windows64-playback artifact_name: windows64-playback
# build_config: -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DQt5_DIR:STRING="D:\a\dolphin\dolphin\Externals\Qt\Qt5.15.0\msvc2019_64\lib\cmake\Qt5" build_config: -G "Ninja" -DCMAKE_BUILD_TYPE="Release" -DSLIPPI_PLAYBACK=true
# env: env:
# DXSDK_DIR: "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\" DXSDK_DIR: "C:\\Program Files (x86)\\Microsoft DirectX SDK (June 2010)\\"
# name: "Windows ${{ matrix.build_type }}" name: "Windows ${{ matrix.build_type }}"
# runs-on: windows-2019 runs-on: windows-2022
# steps: steps:
# - name: "Checkout" - name: "Checkout"
# uses: actions/checkout@v3 uses: actions/checkout@v3
# with: with:
# submodules: recursive submodules: recursive
# # - name: "Remove Redistributable" - name: 'Fetch Git Tags'
# # shell: cmd shell: bash
# # run: | if: success()
# # MsiExec.exe /passive /X{F0C3E5D1-1ADE-321E-8167-68EF0DE699A5} run: |
# # MsiExec.exe /passive /X{1D8E6291-B0D5-35EC-8441-6616F567A0F7} git fetch --prune --unshallow
# # mkdir .\Tools\DX echo "GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV
# # - name: "Setup MSBuild" echo "GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV
# # uses: microsoft/setup-msbuild@v1 echo "GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
# # - name: Cache DXSDK_Jun10.exe echo "CURR_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV
# # uses: actions/cache@v3 - uses: egor-tensin/vs-shell@v2
# # with: - name: "Build ${{ matrix.build_type }} Dolphin"
# # path: ./Tools/DX/ shell: cmd
# # key: ${{ runner.os }} working-directory: ${{ github.workspace }}
# # - name: "Download DirectX SDK" run: |
# # working-directory: ${{ github.workspace }} mkdir build
# # shell: powershell cd build
# # run: | cmake ${{ matrix.build_config }} ..
# # if (!(Test-Path ".\Tools\DX\DXSDK_Jun10.exe" -PathType Leaf)) { Invoke-WebRequest -Uri https://github.com/project-slippi/Ishiiruka/releases/download/v2.2.5/DXSDK_Jun10.exe -UseBasicParsing -OutFile ".\Tools\DX\DXSDK_Jun10.exe" } cmake --build . --target dolphin-emu
# # - name: "Install DirectX SDK" - name: "Package ${{ matrix.build_type }}"
# # working-directory: ${{ github.workspace }} working-directory: ${{ github.workspace }}
# # shell: cmd run: |
# # run: | Xcopy /Y /E /I .\Data\Sys .\Binary\x64\Sys
# # .\Tools\DX\DXSDK_Jun10.exe /U /F cd .\Binary\x64\
# - name: 'Fetch Git Tags' fsutil file createnew FIX-VCRUNTIME140-ERROR.txt 0
# shell: bash echo "Download and install this: https://aka.ms/vs/16/release/vc_redist.x64.exe" > .\FIX-VCRUNTIME140-ERROR.txt
# if: success() - name: "Add Playback codes"
# run: | working-directory: ${{ github.workspace }}
# git fetch --prune --unshallow if: matrix.build_type == 'Playback'
# echo "GIT_BRANCH=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_ENV run: |
# echo "GIT_HASH=$(git rev-parse --short HEAD)" >> $GITHUB_ENV Xcopy /Y /E /I .\Data\Sys .\Binary\x64\Sys
# echo "GIT_TAG=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV Xcopy /Y /E /I .\Data\PlaybackGeckoCodes\* .\Binary\x64\Sys\GameSettings\
# echo "CURR_DATE=$(date +%Y-%m-%d)" >> $GITHUB_ENV - name: Package Artifact
# - uses: seanmiddleditch/gha-setup-ninja@master working-directory: ${{ github.workspace }}
# - uses: egor-tensin/vs-shell@v2 run: |
# - name: "Build ${{ matrix.build_type }} Dolphin" $FILE_NAME="${{ env.CURR_DATE }}-${{ env.GIT_HASH }}-${{ env.GIT_TAG }}-${{ matrix.artifact_name }}.zip"
# shell: cmd mkdir artifact
# working-directory: ${{ github.workspace }} cd .\Binary\x64\
# run: | fsutil file createnew portable.txt 0
# mkdir build 7z a $FILE_NAME .\*
# cd build move $FILE_NAME ..\..\artifact\
# dir ..\Externals\Qt\Qt5.15.0\msvc2019_64\lib\cmake\Qt5 - name: "Publish"
# cmake ${{ matrix.build_config }} .. if: success()
# ninja uses: actions/upload-artifact@v3
# - name: "Package ${{ matrix.build_type }}" with:
# working-directory: ${{ github.workspace }} name: ${{ matrix.artifact_name }}
# run: | path: "./artifact/"
# Xcopy /Y /E /I .\Data\Sys .\Binary\x64\Sys
# cd .\Binary\x64\
# fsutil file createnew FIX-VCRUNTIME140-ERROR.txt 0
# echo "Download and install this: https://aka.ms/vs/16/release/vc_redist.x64.exe" > .\FIX-VCRUNTIME140-ERROR.txt
# - name: "Add Playback codes"
# working-directory: ${{ github.workspace }}
# if: matrix.build_type == 'Playback'
# run: |
# Xcopy /Y /E /I .\Data\Sys .\Binary\x64\Sys
# Xcopy /Y /E /I .\Data\PlaybackGeckoCodes\* .\Binary\x64\Sys\GameSettings\
# - name: Package Artifact
# working-directory: ${{ github.workspace }}
# run: |
# $FILE_NAME="${{ env.CURR_DATE }}-${{ env.GIT_HASH }}-${{ env.GIT_TAG }}-${{ matrix.artifact_name }}.zip"
# mkdir artifact
# cd .\Binary\x64\
# fsutil file createnew portable.txt 0
# 7z a $FILE_NAME .\*
# move $FILE_NAME ..\..\artifact\
# - name: "Publish"
# if: success()
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.artifact_name }}
# path: "./artifact/"
linux: linux:
strategy: strategy:
fail-fast: false fail-fast: false