Skip to content

Pr fix ci

Pr fix ci #291

Workflow file for this run

on:
push:
tags:
- 'v*'
pull_request:
env:
LANGUAGES: [Chinese, German, English, French, Polish, Italian, Dutch, Russian]

Check failure on line 7 in .github/workflows/build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build.yml (Line: 7, Col: 14): A sequence was not expected .github/workflows/build.yml (Line: 11, Col: 15): Unrecognized named-value: 'env'. Located at position 1 within expression: env.IS_RELEASE == 'true' && 'ON' || 'OFF'
GAMEDIR_REPOSITORY: '1dot13/gamedir'
GAMEDIR_LANGUAGES_REPOSITORY: '1dot13/gamedir-languages'
IS_RELEASE: ${{ startsWith(github.ref, 'refs/tags/v') && 'true' || 'false' }}
LTO_OPTION: ${{ env.IS_RELEASE == 'true' && 'ON' || 'OFF' }}
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: Configure build
run: |
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLTO_OPTION=$LTO_OPTION
- name: Build
run: |
cmake --build build/ -- -n