Repository navigation
62 lines (53 loc) · 1.49 KB
/
Copy pathmake.yml
File metadata and controls
62 lines (53 loc) · 1.49 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
name: Make
on:
schedule:
- cron: '0 0 1 * *'
push:
branches:
- "**"
pull_request:
branches:
- master
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 120
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
steps:
- name: Checkout
uses: actions/checkout@v7
with:
submodules: recursive
- name: Update submodules to latest remote HEAD
run: git submodule update --init --recursive --remote
# Windows handles path mapping and fpc.cfg creation out-of-the-box via this action
- name: Install Lazarus/FPC on Windows
if: runner.os == 'Windows'
uses: gcarreno/setup-lazarus@v3
with:
lazarus-version: stable
# Maps the Lazarus action's FPC path directly into the custom Bash environment layer
- name: Add FPC binary path to Bash environment on Windows
if: runner.os == 'Windows'
shell: bash
run: |
FPC_DIR=$(find /c/ -maxdepth 4 -type d -name "i386-win32" -o -name "x86_64-win64" 2>/dev/null | head -n 1)
if [ -n "$FPC_DIR" ]; then
echo "$FPC_DIR" >> $GITHUB_PATH
fi
- name: Build on Linux
if: runner.os == 'Linux'
shell: bash
run: bash .github/workflows/make.sh
- name: Build on Windows
if: runner.os == 'Windows'
shell: bash
run: bash .github/workflows/make.sh