|
1 | | -# ---------------------------------------------------------------------------- |
2 | | -# GitHub Actions workflow to test building all code samples. |
3 | | -# |
4 | | -# See docs: |
5 | | -# - https://castle-engine.io/github_actions |
6 | | -# - https://docs.github.com/en/actions |
7 | | -# ---------------------------------------------------------------------------- |
8 | | - |
9 | | -name: Test Code Samples |
10 | | - |
11 | | -on: [push, pull_request] |
12 | | - |
13 | | -jobs: |
14 | | - build-using-docker: |
15 | | - name: Test Code Samples with FPC 3.3.1 |
16 | | - runs-on: ubuntu-latest |
17 | | - # Using FPC 3.3.1, as some examples (anonymous functions, some generics) |
18 | | - # require it, FPC 3.2.0 is not enough. |
19 | | - container: kambi/castle-engine-cloud-builds-tools:cge-none-fpc331 |
20 | | - steps: |
21 | | - - uses: actions/checkout@v4 |
22 | | - - run: cd code-samples/ && make |
| 1 | +# ---------------------------------------------------------------------------- |
| 2 | +# GitHub Actions workflow to test building all code samples. |
| 3 | +# |
| 4 | +# See docs: |
| 5 | +# - https://castle-engine.io/github_actions |
| 6 | +# - https://docs.github.com/en/actions |
| 7 | +# ---------------------------------------------------------------------------- |
| 8 | + |
| 9 | +name: Test Code Samples |
| 10 | + |
| 11 | +on: [push, pull_request] |
| 12 | + |
| 13 | +jobs: |
| 14 | + build-using-docker: |
| 15 | + name: Test Code Samples with FPC 3.3.1 |
| 16 | + runs-on: ubuntu-latest |
| 17 | + # Using FPC 3.3.1, as some examples (anonymous functions, some generics) |
| 18 | + # require it, FPC 3.2.0 is not enough. |
| 19 | + container: kambi/castle-engine-cloud-builds-tools:cge-none-fpc331 |
| 20 | + steps: |
| 21 | + - uses: actions/checkout@v4 |
| 22 | + - run: cd code-samples/ && make |
| 23 | + |
| 24 | + delphi_test: |
| 25 | + name: Delphi |
| 26 | + strategy: |
| 27 | + matrix: |
| 28 | + host-label: [ |
| 29 | + delphi_12 |
| 30 | + ] |
| 31 | + runs-on: ${{ matrix.host-label }} |
| 32 | + steps: |
| 33 | + - uses: actions/checkout@v4 |
| 34 | + - name: Delphi Build (Win32) |
| 35 | + run: cd code-samples/ && make all-delphi-win32 |
| 36 | + - name: Delphi Build (Win64) |
| 37 | + run: cd code-samples/ && make all-delphi-win64 |
0 commit comments