| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
name: Quick Test |
| 10 |
|
| 11 |
|
| 12 |
on: [workflow_call] |
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
defaults: |
| 17 |
run: |
| 18 |
shell: bash |
| 19 |
|
| 20 |
jobs: |
| 21 |
test-quick: |
| 22 |
name: Quick Test of Tools |
| 23 |
strategy: |
| 24 |
matrix: |
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
operating-system: [ubuntu-latest, windows-latest] |
| 29 |
lazarus-versions: [stable] |
| 30 |
runs-on: ${{ matrix.operating-system }} |
| 31 |
steps: |
| 32 |
- uses: actions/checkout@v4 |
| 33 |
- name: Install FPC+Lazarus |
| 34 |
uses: gcarreno/[email protected] |
| 35 |
with: |
| 36 |
lazarus-version: ${{ matrix.lazarus-versions }} |
| 37 |
|
| 38 |
|
| 39 |
with-cache: false |
| 40 |
- name: Install Ubuntu dependencies |
| 41 |
if: ${{ matrix.operating-system == 'ubuntu-latest' }} |
| 42 |
run: sudo apt-get --no-install-recommends -y install libgl-dev |
| 43 |
- name: Install macOS dependencies |
| 44 |
if: ${{ matrix.operating-system == 'macos-latest' }} |
| 45 |
run: brew install gnu-sed coreutils |
| 46 |
- name: Set environment |
| 47 |
run: echo "CASTLE_ENGINE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV |
| 48 |
- name: Build Tool (Unix) |
| 49 |
if: ${{ matrix.operating-system == 'ubuntu-latest' || matrix.operating-system == 'macos-latest' }} |
| 50 |
run: ./tools/build-tool/castle-engine_compile.sh |
| 51 |
- name: Build Tool (Windows) |
| 52 |
if: ${{ matrix.operating-system == 'windows-latest' }} |
| 53 |
shell: pwsh |
| 54 |
run: ./tools/build-tool/castle-engine_compile.ps1 |
| 55 |
- name: Build Editor |
| 56 |
run: ./tools/build-tool/castle-engine compile --project ./tools/castle-editor/ |
| 57 |
- name: Build FPS Game |
| 58 |
run: ./tools/build-tool/castle-engine compile --project ./examples/fps_game/ |
| 59 |
- name: Run Autotests |
| 60 |
run: | |
| 61 |
./tools/build-tool/castle-engine --project ./tests/ compile --mode=debug |
| 62 |
./tools/build-tool/castle-engine --project ./tests/ run -- --console --no-window-create |