Skip to content

Commit

Permalink
docs: More information on the README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Apr 9, 2020
1 parent 9682508 commit 6b63f22
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/[email protected].34
uses: gcarreno/[email protected].35
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Build the Main Application
Expand Down
49 changes: 48 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
# lazarus-with-github-actions

Testing grounds for the GitHub action setup-lazarus
Testing grounds for the GitHub action [setup-lazarus](https://github.com/gcarreno/setup-lazarus)

**Note**: For supported Lazarus versions and the associated FPC version consult the link above.

## Example usage

```yaml
steps:
- uses: actions/checkout@v2
- uses: gcarreno/setup-lazarus@v1
with:
lazarus-version: 'dist'
- run: lazbuild YourTestProject.lpi
- run: YourTestProject
```
## Matrix example usage
```yaml
name: build

on:
pull_request:
push:
paths-ignore:
- "README.md"
branches:
- master
- releases/*

jobs:
build:
runs-on: ${{ matrix.operating-system }}
strategy:
matrix:
operating-system: [ubuntu-18.04,ubuntu-latest]
lazarus-versions: [dist, 2.0.6]
steps:
- uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/[email protected]
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Build the test app
run: lazbuild "tests/testconsoleapplication.lpi"
- name: Run the test app
run: bin/testconsoleapplication "--all" "--format=plain"
```

0 comments on commit 6b63f22

Please sign in to comment.