Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Sep 29, 2021
1 parent 8e4282e commit 3340b20
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test.yml → .github/workflows/test-branch.yml
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test
name: Test Branch

on:
push:
Expand Down Expand Up @@ -56,6 +56,6 @@ jobs:
lazbuild ${{ matrix.config.args }} test_lazarus.lpi
- name: Run Test
if: matrix.config.name != 'AArch64'
if: matrix.config.name != 'AArch64' # AArch64 was cross compiled
run: |
./test
61 changes: 61 additions & 0 deletions .github/workflows/test-revision.yml
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
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit 3340b20

Please sign in to comment.