Implements feature for animations to spawn additional animations. #1429
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
# | |
# GitHub action to build pull requests. | |
# | |
name: Pull Request | |
on: | |
pull_request: | |
jobs: | |
pr_build: | |
name: Pull Request | |
strategy: | |
fail-fast: false | |
runs-on: windows-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Checkout Files | |
uses: actions/checkout@v4 | |
with: | |
repository: Vinifera-Developers/Vinifera-Files | |
path: vinifera-files | |
- name: Set Variables | |
id: vars | |
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
- 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 | |
- uses: ilammy/msvc-dev-cmd@v1.10.0 | |
with: | |
arch: x86 | |
- name: Configure Project | |
run: | | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build -DPREVIEW=ON | |
- name: Build Project | |
run: | | |
cmake --build build --config RelWithDebInfo | |
- name: Copy Binaries | |
shell: bash | |
run: | | |
mkdir artifact | |
mkdir artifact/Movies | |
cp ./build/Vinifera.dll ./artifact/Vinifera.dll | |
cp ./build/Vinifera.pdb ./artifact/Vinifera.pdb | |
cp ./build/LaunchVinifera.exe ./artifact/LaunchVinifera.exe | |
cp ./build/_deps/tspp-src/pdb/Game.pdb ./artifact/Game.pdb | |
cp ./build/_deps/tspp-src/edb/Game.edb ./artifact/Game.edb | |
cp ./vinifera-files/files/VINIFERA.VQA ./artifact/Movies/VINIFERA.VQA | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vinifera-preview-${{ steps.vars.outputs.sha_short }} | |
path: artifact | |
pr_build_ts_client: | |
name: Pull Request (TS-Client) | |
strategy: | |
fail-fast: false | |
runs-on: windows-latest | |
steps: | |
- name: Clone Repository | |
uses: actions/checkout@v4 | |
- name: Checkout Files | |
uses: actions/checkout@v4 | |
with: | |
repository: Vinifera-Developers/Vinifera-Files | |
path: vinifera-files | |
- name: Set Variables | |
id: vars | |
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)" | |
- 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 | |
- uses: ilammy/msvc-dev-cmd@v1.10.0 | |
with: | |
arch: x86 | |
- name: Configure Project | |
run: | | |
cmake -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo -B build -DPREVIEW=ON -DOPTION_TS_CLIENT_BUILD=ON | |
- name: Build Project | |
run: | | |
cmake --build build --config RelWithDebInfo | |
- name: Copy Binaries | |
shell: bash | |
run: | | |
mkdir artifact | |
mkdir artifact/Movies | |
cp ./build/Vinifera.dll ./artifact/Vinifera.dll | |
cp ./build/Vinifera.pdb ./artifact/Vinifera.pdb | |
cp ./build/LaunchVinifera.exe ./artifact/LaunchVinifera.dat | |
cp ./build/_deps/tspp-src/pdb/Game.pdb ./artifact/Game.pdb | |
cp ./build/_deps/tspp-src/edb/Game.edb ./artifact/Game.edb | |
cp ./vinifera-files/files/VINIFERA.WMV ./artifact/Movies/VINIFERA.VQA | |
- name: Upload Artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: vinifera-preview-${{ steps.vars.outputs.sha_short }}-ts_client | |
path: artifact |