fix: attached effect looping more than it should #1163
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: Build - Windows | |
on: | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
env: | |
CMAKE_BUILD_PARALLEL_LEVEL: 2 | |
MAKEFLAGS: '-j 2' | |
jobs: | |
job: | |
name: ${{ matrix.os }}-${{ matrix.buildtype }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-2022] | |
buildtype: [windows-release, windows-release-asan, windows-debug] | |
include: | |
- os: windows-2022 | |
triplet: x64-windows | |
packages: > | |
sccache | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@main | |
- name: CCache | |
uses: hendrikmuhs/ccache-action@main | |
with: | |
max-size: "1G" | |
variant: "sccache" | |
key: ccache-${{ matrix.os }}-${{ matrix.buildtype }} | |
restore-keys: | | |
ccache-${{ matrix.os }} | |
- name: Restore artifacts and install vcpkg | |
id: vcpkg-step | |
run: | | |
$json=Get-Content vcpkg.json -Raw | ConvertFrom-Json | |
$vcpkgCommitId=$json.'builtin-baseline' | |
Write-Host "vcpkg commit ID: $vcpkgCommitId" | |
echo "::set-output name=vcpkgGitCommitId::$vcpkgCommitId" | |
- name: Get vcpkg commit id from vcpkg.json | |
uses: lukka/run-vcpkg@main | |
with: | |
vcpkgGitURL: "https://github.com/microsoft/vcpkg.git" | |
vcpkgGitCommitId: ${{ steps.vcpkg-step.outputs.vcpkgGitCommitId }} | |
- name: Get latest CMake and ninja | |
uses: lukka/get-cmake@main | |
- name: Run CMake | |
uses: lukka/run-cmake@main | |
with: | |
configurePreset: ${{ matrix.buildtype }} | |
buildPreset: ${{ matrix.buildtype }} | |
- name: Create and Upload Artifact (exe) | |
uses: actions/upload-artifact@main | |
with: | |
name: otclient-${{ matrix.buildtype }}-${{ github.sha }} | |
path: | | |
${{ github.workspace }}/otclient.exe | |
- name: Create and Upload Artifact (dlls) | |
uses: actions/upload-artifact@main | |
with: | |
name: otclient-${{ matrix.buildtype }}-${{ github.sha }} | |
path: | | |
${{ github.workspace }}/*.dll | |