Skip to content

Commit

Permalink
Test it builds with FPC / Lazarus in our Docker images
Browse files Browse the repository at this point in the history
  • Loading branch information
michaliskambi committed Mar 26, 2024
1 parent b3bec6b commit a7af0c1
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: [castle-engine, michaliskambi] # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: castleengine # Replace with a single Patreon username
open_collective: castle-engine # Replace with a single Open Collective username
# ko_fi: # Replace with a single Ko-fi username
# tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
# community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
# liberapay: # Replace with a single Liberapay username
# issuehunt: # Replace with a single IssueHunt username
# otechie: # Replace with a single Otechie username
# custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']
10 changes: 10 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Check that GitHub Actions use latest versions of plugins.
# See https://docs.github.com/en/code-security/dependabot/working-with-dependabot/keeping-your-actions-up-to-date-with-dependabot .

version: 2
updates:
# Maintain dependencies for GitHub Actions
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
45 changes: 45 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# ----------------------------------------------------------------------------
# GitHub Actions workflow to test building pasls (server).
#
# To check
# - whether it builds,
# - whether the FPC and Lazarus versions in our
# Docker image are sufficient.
# (Right now, IdentComplIncludeKeywords requires Lazarus >= 3.0.0).
#
# This uses GitHub-hosted runners, that is: you don't need to set up any server
# infrastructure, GitHub provides it all for free for open-source projects.
#
# See docs:
# - https://castle-engine.io/github_actions
# - https://docs.github.com/en/actions
# ----------------------------------------------------------------------------

name: Build
on: [push, pull_request]

jobs:
build-in-docker:
name: Build (Docker)
runs-on: ubuntu-latest
container: kambi/castle-engine-cloud-builds-tools:cge-none
steps:
- uses: actions/checkout@v4
- name: Compile Server
run: lazbuid server/pasls.lpi

build:
name: Build (Not Docker)
strategy:
matrix:
operating-system: [windows-latest, ubuntu-latest, macos-latest]
lazarus-versions: [stable, 3.0]
runs-on: ${{ matrix.operating-system }}
steps:
- uses: actions/checkout@v4
- name: Install FPC+Lazarus
uses: gcarreno/[email protected]
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Compile Server
run: lazbuid server/pasls.lpi

0 comments on commit a7af0c1

Please sign in to comment.