Skip to content

Pr fix ci

Pr fix ci #300

Workflow file for this run

on:
push:
tags:
- 'v*'
pull_request:
env:
LANGUAGES: ("Chinese", "German", "English", "French", "Polish", "Italian", "Dutch", "Russian")
GAMEDIR_REPOSITORY: '1dot13/gamedir'
GAMEDIR_LANGUAGES_REPOSITORY: '1dot13/gamedir-languages'
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') && 'true' || 'false' }}
jobs:
compile:
runs-on: windows-latest
steps:
- name: Debug
shell: bash
run: |
echo $IS_RELEASE
echo $LANGUAGES
echo $GAMEDIR_REPOSITORY
echo $GAMEDIR_LANGUAGES_REPOSITORY
echo $GITHUB_REPOSITORY
- name: Checkout source
uses: actions/checkout@v4
- name: Prepare build properties
shell: bash
run: |
set -eux
touch CMakePresets.json
- uses: microsoft/setup-msbuild@v2
with:
msbuild-architecture: x86
- uses: ilammy/msvc-dev-cmd@v1
with:
arch: x86
- name: Setup persistent build directory
id: cache-CI
uses: actions/cache@v4
env:
cache-name: cache-CI
with:
path: buildCI
key: ${{ runner.os }}-cmake-static-cache
- name: Configure if no persistent directory
if: steps.cache-CI.outputs.cache-hit != 'true'
run: |
cmake -S . -B buildCI -GNinja -DCMAKE_BUILD_TYPE=Release
- name: Build
run: |
cmake --build buildCI -- -v