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