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:
|
with:
|
||||||
language: ${{ matrix.language }}
|
language: ${{ matrix.language }}
|
||||||
assemble: ${{ needs.workflow_setup.outputs.assemble_release == 'true' }}
|
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
|
# at least English and some other lang have to work
|
||||||
continue-on-error: ${{ matrix.language != 'English' && matrix.language != 'German' }}
|
continue-on-error: ${{ matrix.language != 'English' && matrix.language != 'German' }}
|
||||||
|
|
||||||
|
|||||||
@@ -13,6 +13,11 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: true
|
default: true
|
||||||
type: boolean
|
type: boolean
|
||||||
|
build-cache-enabled:
|
||||||
|
description: 'enable sscache'
|
||||||
|
required: true
|
||||||
|
default: false
|
||||||
|
type: boolean
|
||||||
continue-on-error:
|
continue-on-error:
|
||||||
description: 'allows a language to fail, used when building all languages'
|
description: 'allows a language to fail, used when building all languages'
|
||||||
required: false
|
required: false
|
||||||
@@ -27,6 +32,8 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
application: [ja2, ja2mapeditor, ja2ub, ja2ubmapeditor]
|
application: [ja2, ja2mapeditor, ja2ub, ja2ubmapeditor]
|
||||||
|
env:
|
||||||
|
SCCACHE_GHA_ENABLED: ${{ inputs.build-cache-enabled }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout source
|
- name: Checkout source
|
||||||
@@ -75,9 +82,19 @@ jobs:
|
|||||||
- uses: ilammy/msvc-dev-cmd@v1
|
- uses: ilammy/msvc-dev-cmd@v1
|
||||||
with:
|
with:
|
||||||
arch: x86
|
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
|
- name: Prepare build
|
||||||
run: |
|
run: >
|
||||||
cmake -S . -B build -GNinja -DCMAKE_BUILD_TYPE=Release -DLanguages="$Env:JA2Language" -DApplications="$Env:JA2Application"
|
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
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cmake --build build/ -- -v
|
cmake --build build/ -- -v
|
||||||
|
|||||||
@@ -626,6 +626,7 @@ void HandleSoldierAI( SOLDIERTYPE *pSoldier ) // FIXME - this function is named
|
|||||||
if ( pSoldier->aiData.bNewSituation == IS_NEW_SITUATION )
|
if ( pSoldier->aiData.bNewSituation == IS_NEW_SITUATION )
|
||||||
{
|
{
|
||||||
BOOLEAN fProcessNewSituation;
|
BOOLEAN fProcessNewSituation;
|
||||||
|
BOOLEAN fProcessNewSituation2 = TRUE;
|
||||||
|
|
||||||
// if this happens during an attack then do nothing... wait for the A.B.C.
|
// if this happens during an attack then do nothing... wait for the A.B.C.
|
||||||
// to be reduced to 0 first -- CJC December 13th
|
// to be reduced to 0 first -- CJC December 13th
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
#include "Isometric Utils.h"
|
#include "Isometric Utils.h"
|
||||||
#include "Rotting Corpses.h"
|
#include "Rotting Corpses.h"
|
||||||
|
|
||||||
|
#define ANOTHERNEWVAR 1
|
||||||
|
|
||||||
#define TESTAICONTROL
|
#define TESTAICONTROL
|
||||||
|
|
||||||
extern INT16 gubAIPathCosts[19][19];
|
extern INT16 gubAIPathCosts[19][19];
|
||||||
|
|||||||
Reference in New Issue
Block a user