From c66e4c69c667ee8178c9951c7623d04644ef711c Mon Sep 17 00:00:00 2001 From: Daniele Bartolini Date: Tue, 6 Jun 2023 22:44:17 +0200 Subject: [PATCH] .github: test data-compiler on samples --- .github/workflows/main.yml | 6 ++++++ makefile | 10 ++++++---- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 3cba5c406..a31d0244f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -89,6 +89,12 @@ jobs: - name: linux-test-release64 run: | cd ./build/linux64/bin && ./crown-release --run-unit-tests + - name: linux-test-data-compiler-android + run: | + make samples SAMPLES_PLATFORM=android + - name: linux-test-data-compiler-linux + run: | + make samples SAMPLES_PLATFORM=linux - name: linux-make-level-editor-debug64 run: | make MAKE_JOBS=2 level-editor-linux-debug64 diff --git a/makefile b/makefile index 13e4a9573..4c9cbfade 100644 --- a/makefile +++ b/makefile @@ -177,18 +177,20 @@ tools-mingw-release64: mingw-development64 level-editor-mingw-release64 docs: "$(MAKE)" -C docs/ html +SAMPLES_PLATFORM=$(OS) + .PHONY: 00-empty 00-empty: $(OS)-development64 - cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile + cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile --platform $(SAMPLES_PLATFORM) .PHONY: 01-physics 01-physics: $(OS)-development64 - cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile + cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile --platform $(SAMPLES_PLATFORM) .PHONY: 02-animation 02-animation: $(OS)-development64 - cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile + cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile --platform $(SAMPLES_PLATFORM) .PHONY: 03-joypad 03-joypad: $(OS)-development64 - cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile + cd build/$(OS)64/bin && $(EXE_PREFIX)crown-development$(EXE_SUFFIX) --source-dir $(realpath samples/$@) --map-source-dir core $(realpath samples) --compile --platform $(SAMPLES_PLATFORM) .PHONY: samples samples: 00-empty 01-physics 02-animation 03-joypad