-
-
Notifications
You must be signed in to change notification settings - Fork 150
64 lines (58 loc) · 2.74 KB
/
quick-test.yml
File metadata and controls
64 lines (58 loc) · 2.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# ----------------------------------------------------------------------------
# GitHub Action workflow to quickly test that some CGE tools/examples compile.
#
# This is a small subset of tests done by test-and-pack.yml ,
# just to make a quick error in case you break the compilation of a critical CGE part.
# The full test-and-pack.yml tests much more, but takes about 2h now.
# ----------------------------------------------------------------------------
name: Quick Test
# Called by everything.yml
on: [workflow_call]
#on: [push, pull_request]
# setup.sh inside Docker requires using bash
defaults:
run:
shell: bash
# GitHub CodeQL recommends to explicitly set permissions for GITHUB_TOKEN.
# See https://docs.github.com/en/actions/tutorials/authenticate-with-github_token .
permissions:
contents: read
jobs:
test-quick:
name: Quick Test of Tools
strategy:
matrix:
operating-system: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v6
- name: Install FPC+Lazarus
run: |
cd /tmp/
git clone https://github.com/castle-engine/castle-build-ci.git --depth=1 --single-branch --branch=master
castle-build-ci/install_dependencies
# Use setup_castle_engine to install FPC+Lazarus, not CGE.
castle-build-ci/setup_castle_engine --install-castle-engine=false --install-fpc=true --install-lazarus=true
- name: Install Linux dependencies
if: ${{ matrix.operating-system == 'ubuntu-latest' }}
run: sudo apt-get update && sudo apt-get --no-install-recommends -y install libgl-dev
- name: Install macOS dependencies
if: ${{ matrix.operating-system == 'macos-latest' }}
run: brew install gnu-sed coreutils
- name: Set environment
run: echo "CASTLE_ENGINE_PATH=$GITHUB_WORKSPACE" >> $GITHUB_ENV
- name: Build Tool (Unix)
if: ${{ matrix.operating-system == 'ubuntu-latest' || matrix.operating-system == 'macos-latest' }}
run: ./tools/build-tool/castle-engine_compile.sh
- name: Build Tool (Windows)
if: ${{ matrix.operating-system == 'windows-latest' }}
shell: pwsh
run: ./tools/build-tool/castle-engine_compile.ps1
- name: Build Editor
run: ./tools/build-tool/castle-engine compile --project ./tools/castle-editor/
- name: Build examples/3d_games/explore_impressive_castle
run: ./tools/build-tool/castle-engine compile --project ./examples/3d_games/explore_impressive_castle/
- name: Run Autotests
run: |
./tools/build-tool/castle-engine --project ./tests/ compile --mode=debug
./tools/build-tool/castle-engine --project ./tests/ run -- --console --no-window-create