mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
936921ffc3 | ||
|
|
910b4f4319 | ||
|
|
27db22b96f |
@@ -169,6 +169,8 @@ jobs:
|
||||
with:
|
||||
language: ${{ matrix.language }}
|
||||
assemble: ${{ needs.workflow_setup.outputs.assemble_release == 'true' }}
|
||||
# TODO check if English and German build faster for code changes on master, if not remove caching
|
||||
build-cache-enabled: ${{ matrix.language == 'English' || matrix.language == 'German' }}
|
||||
# at least English and some other lang have to work
|
||||
continue-on-error: ${{ matrix.language != 'English' && matrix.language != 'German' }}
|
||||
|
||||
|
||||
@@ -13,6 +13,11 @@ on:
|
||||
required: true
|
||||
default: true
|
||||
type: boolean
|
||||
build-cache-enabled:
|
||||
description: 'enable sscache'
|
||||
required: true
|
||||
default: false
|
||||
type: boolean
|
||||
continue-on-error:
|
||||
description: 'allows a language to fail, used when building all languages'
|
||||
required: false
|
||||
@@ -27,6 +32,8 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
application: [ja2, ja2mapeditor, ja2ub, ja2ubmapeditor]
|
||||
env:
|
||||
SCCACHE_GHA_ENABLED: ${{ inputs.build-cache-enabled }}
|
||||
|
||||
steps:
|
||||
- name: Checkout source
|
||||
@@ -75,9 +82,19 @@ jobs:
|
||||
- uses: ilammy/msvc-dev-cmd@v1
|
||||
with:
|
||||
arch: x86
|
||||
- name: Prepare build cache
|
||||
if: ${{ inputs.build-cache-enabled }}
|
||||
uses: hendrikmuhs/ccache-action@v1
|
||||
with:
|
||||
key: ${{ inputs.language }}_${{ matrix.application }}
|
||||
save: ${{ github.ref == 'refs/heads/master' }}
|
||||
variant: sccache
|
||||
- name: Prepare build
|
||||
run: |
|
||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application"
|
||||
run: >
|
||||
cmake -S . -B build -GNinja
|
||||
-DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache
|
||||
-DCMAKE_BUILD_TYPE=Release
|
||||
-DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application"
|
||||
- name: Build
|
||||
run: |
|
||||
cmake --build build/ -- -v
|
||||
|
||||
@@ -626,6 +626,7 @@ void HandleSoldierAI( SOLDIERTYPE *pSoldier ) // FIXME - this function is named
|
||||
if ( pSoldier->aiData.bNewSituation == IS_NEW_SITUATION )
|
||||
{
|
||||
BOOLEAN fProcessNewSituation;
|
||||
BOOLEAN fProcessNewSituation2 = TRUE;
|
||||
|
||||
// if this happens during an attack then do nothing... wait for the A.B.C.
|
||||
// to be reduced to 0 first -- CJC December 13th
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include "Isometric Utils.h"
|
||||
#include "Rotting Corpses.h"
|
||||
|
||||
#define ANOTHERNEWVAR 1
|
||||
|
||||
#define TESTAICONTROL
|
||||
|
||||
extern INT16 gubAIPathCosts[19][19];
|
||||
|
||||
Reference in New Issue
Block a user