Skip to content

Commit

Permalink
.github: test data-compiler on samples
Browse files Browse the repository at this point in the history
  • Loading branch information
dbartolini committed Jun 6, 2023
1 parent b4ec695 commit c66e4c6
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Expand Up @@ -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
Expand Down
10 changes: 6 additions & 4 deletions makefile
Expand Up @@ -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
Expand Down

0 comments on commit c66e4c6

Please sign in to comment.