Skip to content

Add GitHub as a dependency source to CI (#13) #41

Add GitHub as a dependency source to CI (#13)

Add GitHub as a dependency source to CI (#13) #41

Workflow file for this run

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
- ubuntu-24.04-arm
- windows-latest
- macos-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: true
- name: Build on Linux (x86_64)
if: runner.os == 'Linux' && runner.arch == 'X64'
shell: bash
run: |
set -xeuo pipefail
sudo bash -c 'apt-get update; apt-get install -y lazarus' >/dev/null
instantfpc .github/workflows/make.pas
- name: Build on Linux (AArch64)
if: runner.os == 'Linux' && runner.arch == 'ARM64'
shell: bash
run: |
set -xeuo pipefail
sudo bash -c 'apt-get update; apt-get install -y lazarus' >/dev/null
instantfpc .github/workflows/make.pas
- name: Install Lazarus on macOS
if: runner.os == 'macOS'
uses: gcarreno/setup-lazarus@v3
with:
lazarus-version: stable
with-cache: false
- name: Build on macOS
if: runner.os == 'macOS'
shell: bash
run: |
set -xeuo pipefail
instantfpc .github/workflows/make.pas
- name: Build on Windows
if: runner.os == 'Windows'
shell: powershell
run: |
$ErrorActionPreference = 'stop'
Set-PSDebug -Strict
Write-Host "Installing Lazarus and OpenSSL 1.1 via Chocolatey..."
choco upgrade chocolatey -y
choco install lazarus -y
choco install openssl.light --version=1.1.1.20181020 -y
Write-Host "Verifying installed packages..."
choco list
# Lazarus installs to C:\Lazarus by default
# Add Lazarus and OpenSSL paths for instantfpc
$env:Path += ';C:\Lazarus;C:\Lazarus\fpc\3.2.2\bin\x86_64-win64;C:\ProgramData\chocolatey\lib\openssl.light\tools'
Write-Host "Checking lazbuild and instantfpc availability..."
Get-Command lazbuild
Get-Command instantfpc
Write-Host "Building make.pas..."
instantfpc .github/workflows/make.pas