Originating from setup-lazarus
添加 Linux 从源码安装 arm32v7, arm64v8
在 GitHub Actions workflow 安装指定版本和架构的 Lazarus
REQUIRED Lazarus version.
Possible values:
| Lazarus Version | FPC Version | Description |
|---|---|---|
| 4.0 | 3.2.2 | |
| 3.8 | 3.2.2 | |
| 3.6 | 3.2.2 | |
| 3.2 | 3.2.2 | |
| 3.4 | 3.2.2 | |
| 3.0 | 3.2.2 | |
| 2.2.6 | 3.2.2 | |
| 2.2.4 | 3.2.2 | |
| 2.2.2 | 3.2.2 |
OPTIONAL List of packages to install.
You can ask the action to fetch packages and install them after Lazarus is installed.
Format is a string with the packages separated by comma: "Package 1, Package 2, Package 3".
The list of packages can be searched at the Lazarus IDE repository.
OPTIONAL Use cached installer files.
DEFAULT true.
This is a boolean input and will use cache if set to true.
NOTE
At this moment, there's an issue with the retrieved install executables for Windows. I'm trying to get to the bottom of why, but it's going to take some time. Caching is now off ny default for Windows until I can solve this issue!
支持操作系统
- Windows (platform=win32, arch=i386, x64)
- Linux (platform=linux, arch=i386, amd64, arm32v7, arm64v8)
- macOS (platform=darwin, arch=x64, aarch64)
- 最小版本支持 2.2.2
- MacOS 仅支持 Cocoa
- Linux ARM64 run-on-architecture build
steps:
- uses: actions/checkout@v3
- uses: sxmxta/lazarus@v1
with:
lazarus-version: "stable"
include-packages: "Synapse 40.1"
with-cache: true
- run: lazbuild YourTestProject.lpi
- run: YourTestProjectname: build
on:
pull_request:
push:
paths-ignore:
- "README.md"
branches:
- master
- releases/*
jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [windows-latest,ubuntu-latest,macos-latest]
lazarus-versions: [2.2.4, 2.2.2]
steps:
- name: Checkout source code
uses: actions/checkout@v3
- name: Install Lazarus
uses: energye/setup-lazarus@v1.0.0
with:
lazarus-version: ${{ matrix.lazarus-versions }}
include-packages: "Synapse 40.1"
with-cache: true
- name: Build the Main Application
if: ${{ matrix.operating-system != 'macos-latest' }}
run: lazbuild -B "src/lazaruswithgithubactions.lpi"
- name: Build the Main Application (macOS)
if: ${{ matrix.operating-system == 'macos-latest' }}
run: lazbuild -B --ws=cocoa "src/lazaruswithgithubactions.lpi"
- name: Build the Unit Tests Application
run: lazbuild -B "tests/testconsoleapplication.lpi"
- name: Run the Unit Tests Application
run: bin/testconsoleapplication "--all" "--format=plain"- 安装
nodejs 20版本 - 使用
npm安装 ts-nodenpm install -g ts-node - 在环境变量配置
mode(运行模式)mode=local- 其它环境变量参数
LAZARUS-VERSION=3.6OS-ARCH=x64
- 运行
npm run dev