Debian Codegraph @

.github/workflows/quick-test.yml

raw symbols SCIP
1 # ----------------------------------------------------------------------------
2 # GitHub Action workflow to quickly test that some CGE tools/examples compile.
3 #
4 # This is a small subset of tests done by test-and-pack.yml ,
5 # just to make a quick error in case you break the compilation of a critical CGE part.
6 # The full test-and-pack.yml tests much more, but takes about 2h now.
7 # ----------------------------------------------------------------------------
8
9 name: Quick Test
10
11 # Called by everything.yml
12 on: [workflow_call]
13 #on: [push, pull_request]
14
15 # setup.sh inside Docker requires using bash
16 defaults:
17 run:
18 shell: bash
19
20 jobs:
21 test-quick:
22 name: Quick Test of Tools
23 strategy:
24 matrix:
25 # Not using macos-latest as it randomly fails because of timeouts
26 # (e.g. https://github.com/castle-engine/castle-engine/actions/runs/2771175624 )
27 # Looks like GH hosted macOS runner is just too busy.
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 # Cache makes Windows jobs fail (they timeout),
38 # documented as TODO on https://github.com/marketplace/actions/setup-lazarus-environment .
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