-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
70 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Test Revision | ||
|
||
on: | ||
push: | ||
branches: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
test: | ||
name: ${{ matrix.config.name }} | ||
runs-on: ${{ matrix.config.os }} | ||
defaults: | ||
run: | ||
shell: bash | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
config: | ||
- name: Windows 64 | ||
os: windows-latest | ||
cpu: x86_64 | ||
|
||
- name: Windows 32 | ||
os: windows-latest | ||
cpu: i386 | ||
|
||
- name: Linux 64 | ||
os: ubuntu-latest | ||
cpu: x86_64 | ||
|
||
- name: AArch64 | ||
os: ubuntu-latest | ||
cpu: aarch64 | ||
args: --cpu=aarch64 | ||
|
||
- name: MacOS 64 | ||
os: macos-latest | ||
cpu: x86_64 | ||
args: --widgetset=cocoa | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Install Lazarus | ||
uses: ./ | ||
with: | ||
cpu: ${{ matrix.config.cpu }} | ||
laz-revision: 58bab5263932362aa35a59bf0cd9439dfe87b25c | ||
fpc-revision: 6e6c946e0fd1765f99110e12c79db27a400c6587 | ||
|
||
- name: Build Test | ||
run: | | ||
lazbuild ${{ matrix.config.args }} test_lazarus.lpi | ||
- name: Run Test | ||
if: matrix.config.name != 'AArch64' # AArch64 was cross compiled | ||
run: | | ||
./test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,10 @@ Caches that are not in a week are [removed](https://github.com/actions/cache#cac | |
|
||
- `cpu`: CPU target to setup Lazarus for. | ||
- `laz-branch`: Lazarus (gitlab) branch to install | ||
- `laz-revision`: Lazarus (gitlab) commit hash to install | ||
- `fpc-branch`: FPC (gitlab) branch to install | ||
- `fpc-revision`: FPC (gitlab) commit hash to install | ||
- `fpcup-url`: URL to fpcup exectuable to install. By default a hard coded version is used. | ||
|
||
Supported CPU targets: | ||
- `x86_64`: Windows, Linux, macOS | ||
|
@@ -66,12 +69,12 @@ jobs: | |
- uses: actions/[email protected] | ||
|
||
- name: Install Lazarus | ||
uses: ollydev/setup-lazarus-fpcup@v2 | ||
uses: ollydev/setup-lazarus-fpcup@v2.2 | ||
with: | ||
cpu: ${{ matrix.config.cpu }} | ||
laz-branch: lazarus_2_2_0_rc1 | ||
fpc-branch: release_3_2_2_rc1 | ||
laz-branch: lazarus_2_2_0_rc1 # laz-revision: 58bab5263932362aa35a59bf0cd9439dfe87b25c | ||
fpc-branch: release_3_2_2_rc1 # fpc-revision: 6e6c946e0fd1765f99110e12c79db27a400c6587 | ||
- name: Test Installation | ||
if: matrix.config.name != 'AArch64' # AArch64 was cross compiled! | ||
run: | | ||
|