Use delete on classes not meant to be copied #2378
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 | |
on: | |
pull_request: | |
push: | |
jobs: | |
remaster_msvc: | |
runs-on: windows-2019 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: ilammy/[email protected] | |
with: | |
arch: x86 | |
- name: Set Git Info | |
id: gitinfo | |
shell: pwsh | |
run: | | |
$gitoutput = git rev-parse --short HEAD | |
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT | |
- name: Install Dependencies | |
run: | | |
Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile $Env:TEMP\ninja-win.zip | |
Expand-Archive $Env:TEMP\ninja-win.zip -DestinationPath $Env:TEMP\ninja | |
echo "$Env:TEMP\ninja" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
ninja --version | |
- name: Configure Vanilla Conquer | |
run: | | |
cmake --preset cl-remaster | |
- name: Build Vanilla Conquer | |
run: | | |
cmake --build build | |
- name: Create archives | |
shell: bash | |
run: | | |
mkdir artifact | |
7z a artifact/vanilla-conquer-remasterdll-msvc-${{ steps.gitinfo.outputs.sha_short }}.zip ./build/RedAlert.dll ./build/TiberianDawn.dll | |
7z a artifact/vanilla-conquer-remasterdll-msvc-${{ steps.gitinfo.outputs.sha_short }}-debug.zip ./build/RedAlert.pdb ./build/TiberianDawn.pdb | |
7z a artifact/vanilla-ra-remaster-mod-msvc-${{ steps.gitinfo.outputs.sha_short }}.zip ./build/Vanilla_RA | |
7z a artifact/vanilla-td-remaster-mod-msvc-${{ steps.gitinfo.outputs.sha_short }}.zip ./build/Vanilla_TD | |
- name: Upload artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vanilla-conquer-remaster-msvc | |
path: artifact | |
- name: Upload development release | |
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: Development Build | |
tag_name: "latest" | |
prerelease: true | |
files: | | |
artifact/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload tagged release | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
artifact/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
vanilla_win_msvc: | |
runs-on: windows-2019 | |
strategy: | |
matrix: | |
platform: [x86, amd64] | |
networking: [net, nonet] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: 'true' | |
fetch-depth: 0 | |
ref: ${{ github.event.pull_request.head.sha }} | |
- uses: ilammy/[email protected] | |
with: | |
arch: ${{ matrix.platform }} | |
- name: Set Git Info | |
id: gitinfo | |
shell: pwsh | |
run: | | |
$gitoutput = git rev-parse --short HEAD | |
echo "sha_short=${gitoutput}" >> $env:GITHUB_OUTPUT | |
- name: Set variables | |
id: vars | |
shell: pwsh | |
run: | | |
If ("${{ matrix.platform }}" -eq "x86") { | |
echo "oal_path=Win32" >> $env:GITHUB_OUTPUT | |
echo "sdl_path=x86" >> $env:GITHUB_OUTPUT | |
echo "arc_path=i686" >> $env:GITHUB_OUTPUT | |
} else { | |
echo "oal_path=Win64" >> $env:GITHUB_OUTPUT | |
echo "sdl_path=x64" >> $env:GITHUB_OUTPUT | |
echo "arc_path=x86_64" >> $env:GITHUB_OUTPUT | |
} | |
- name: Install Dependencies | |
run: | | |
choco install openalsdk --no-progress | |
Invoke-WebRequest -Uri https://www.libsdl.org/release/SDL2-devel-2.0.12-VC.zip -OutFile $Env:TEMP\SDL2-devel.zip | |
Invoke-WebRequest -Uri https://github.com/ninja-build/ninja/releases/download/v1.10.1/ninja-win.zip -OutFile $Env:TEMP\ninja-win.zip | |
Invoke-WebRequest -SkipCertificateCheck -Uri https://www.openal-soft.org/openal-binaries/openal-soft-1.21.0-bin.zip -OutFile $Env:TEMP\openal-soft-1.21.0-bin.zip | |
Expand-Archive $Env:TEMP\SDL2-devel.zip -DestinationPath $Env:TEMP | |
Expand-Archive $Env:TEMP\ninja-win.zip -DestinationPath $Env:TEMP\ninja | |
Expand-Archive $Env:TEMP\openal-soft-1.21.0-bin.zip -DestinationPath $Env:TEMP | |
echo "$Env:TEMP\ninja" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
ninja --version | |
Rename-Item $Env:TEMP\openal-soft-1.21.0-bin\bin\${{ steps.vars.outputs.oal_path }}\soft_oal.dll OpenAL32.dll | |
- name: Configure Vanilla Conquer | |
run: | | |
cmake --preset cl-vanilla-${{ matrix.networking }}-tests -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON "-DSDL2_ROOT_DIR=$($Env:TEMP)\SDL2-2.0.12" "-DOPENAL_ROOT=C:\Program Files (x86)\OpenAL 1.1 SDK" "-DImageMagick_magick_EXECUTABLE=$($(Get-Command magick.exe).Source)" -DImageMagick_magick_FOUND=TRUE | |
- name: Build Vanilla Conquer | |
run: | | |
cmake --build build | |
- name: Run unit tests | |
run: | | |
cd build | |
Copy-Item -Path "$Env:TEMP\SDL2-2.0.12\lib\${{ steps.vars.outputs.sdl_path }}\SDL2.dll" -Destination . -verbose | |
ctest -C Release | |
- name: Create archives | |
if: ${{ matrix.networking == 'net' }} | |
shell: bash | |
run: | | |
mkdir artifact | |
7z a artifact/vanilla-conquer-win-msvc-${{ steps.vars.outputs.arc_path }}-${{ steps.gitinfo.outputs.sha_short }}.zip ./build/vanillatd.exe ./build/vanillara.exe ./build/vanillamix.exe $TEMP/SDL2-2.0.12/lib/${{ steps.vars.outputs.sdl_path }}/SDL2.dll $TEMP/openal-soft-1.21.0-bin/bin/${{ steps.vars.outputs.oal_path }}/OpenAL32.dll | |
7z a artifact/vanilla-conquer-win-msvc-${{ steps.vars.outputs.arc_path }}-${{ steps.gitinfo.outputs.sha_short }}-debug.zip ./build/vanillatd.pdb ./build/vanillara.pdb ./build/vanillamix.pdb | |
- name: Upload artifact | |
if: ${{ matrix.networking == 'net' }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vanilla-conquer-win-msvc-${{ steps.vars.outputs.arc_path }} | |
path: artifact | |
- name: Upload development release | |
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/vanilla' && matrix.networking == 'net' }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
name: Development Build | |
tag_name: "latest" | |
prerelease: true | |
files: | | |
artifact/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Upload tagged release | |
if: ${{ startsWith(github.ref, 'refs/tags/') && matrix.networking == 'net' }} | |
uses: softprops/action-gh-release@v2 | |
with: | |
files: | | |
artifact/* | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |