Skip to content

Commit

Permalink
refactor: Added the complete list of packages available at sourceforge
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Apr 9, 2020
1 parent 6d469c5 commit 83e28ec
Show file tree
Hide file tree
Showing 5 changed files with 241 additions and 11 deletions.
38 changes: 32 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,38 @@ Set up your GitHub Actions workflow with a specific version of Lazarus

**Required** Lazarus version. Default `"dist"`.

Possible values: (**NOTE**: needs complete list and what version of FPC is included)
Possible values:

* "dist" - Lazarus package that comes with the ubuntu dist your chose on `runs-on`
* "2.0.6"
* "2.0.4"
* "2.0.2"
* LAZ"2.0.6" FPC"3.0.4"
* LAZ"2.0.4" FPC"3.0.4"
* LAZ"2.0.2" FPC"3.0.4"
* LAZ"2.0.0" FPC"3.0.4"
* LAZ"1.8.4" FPC"3.0.4"
* LAZ"1.8.2" FPC"3.0.4"
* LAZ"1.8.0" FPC"3.0.4"
* LAZ"1.6.4" FPC"3.0.2"
* LAZ"1.6.2" FPC"3.0.0"
* LAZ"1.6" FPC"3.0.0"
* LAZ"1.4.4" FPC"2.6.4"
* LAZ"1.4.2" FPC"2.6.4"
* LAZ"1.4" FPC"2.6.4"
* LAZ"1.2.6" FPC"2.6.4"
* LAZ"1.2.4" FPC"2.6.4"
* LAZ"1.2.2" FPC"2.6.4"
* LAZ"1.2" FPC"2.6.2"
* LAZ"1.2" FPC"2.6.2"
* LAZ"1.0.14" FPC"2.6.2"
* LAZ"1.0.12" FPC"2.6.2"

## Platforms

At the moment this action only supports:

* Windows (win32)
* Linux (linux)

**Note** If someone wants to help get masOS (darwin) running I'll be more than happy!

## Example usage

Expand All @@ -27,7 +53,7 @@ steps:
- run: YourTestProject
```
## More elaborate example usage
## Matrix example usage
```yaml
name: build
Expand All @@ -51,7 +77,7 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/[email protected].16
uses: gcarreno/[email protected].34
with:
lazarus-version: ${{ matrix.lazarus-versions }}
- name: Build the test app
Expand Down
104 changes: 103 additions & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4486,7 +4486,24 @@ function getPackageName(platform, lazarusVersion, pkg) {
let pkgs = {
"win32": {
"v2_0_6": "lazarus-2.0.6-fpc-3.0.4-win32.exe",
"v2_0_4": "lazarus-2.0.4-fpc-3.0.4-win32.exe"
"v2_0_4": "lazarus-2.0.4-fpc-3.0.4-win32.exe",
"v2_0_2": "lazarus-2.0.2-fpc-3.0.4-win32.exe",
"v2_0_0": "lazarus-2.0.0-fpc-3.0.4-win32.exe",
"v1_8_4": "lazarus-1.8.4-fpc-3.0.4-win32.exe",
"v1_8_2": "lazarus-1.8.2-fpc-3.0.4-win32.exe",
"v1_8_0": "lazarus-1.8.0-fpc-3.0.4-win32.exe",
"v1_6_4": "lazarus-1.6.4-fpc-3.0.2-win32.exe",
"v1_6_2": "lazarus-1.6.2-fpc-3.0.0-win32.exe",
"v1_6": "lazarus-1.6.0-fpc-3.0.0-win32.exe",
"v1_4_4": "lazarus-1.4.4-fpc-2.6.4-win32.exe",
"v1_4_2": "lazarus-1.4.2-fpc-2.6.4-win32.exe",
"v1_4": "lazarus-1.4.0-fpc-2.6.4-win32.exe",
"v1_2_6": "lazarus-1.2.6-fpc-2.6.4-win32.exe",
"v1_2_4": "lazarus-1.2.4-fpc-2.6.4-win32.exe",
"v1_2_2": "lazarus-1.2.2-fpc-2.6.4-win32.exe",
"v1_2": "lazarus-1.2.0-fpc-2.6.2-win32.exe",
"v1_0_14": "lazarus-1.0.14-fpc-2.6.2-win32.exe",
"v1_0_12": "lazarus-1.0.12-fpc-2.6.2-win32.exe"
},
"linux": {
"v2_0_6": {
Expand All @@ -4498,6 +4515,91 @@ function getPackageName(platform, lazarusVersion, pkg) {
"laz": "lazarus-project_2.0.4-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v2_0_2": {
"laz": "lazarus-project_2.0.2-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v2_0_0": {
"laz": "lazarus-project_2.0.0-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_4": {
"laz": "lazarus-project_1.8.4-0_amd64.deb",
"fpc": "fpc_3.0.4-3_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_2": {
"laz": "lazarus-project_1.8.2-0_amd64.deb",
"fpc": "fpc_3.0.4-2_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_0": {
"laz": "lazarus-project_1.8.0-1_amd64.deb",
"fpc": "fpc_3.0.4-2_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_6_4": {
"laz": "lazarus-project_1.6.4-0_amd64.deb",
"fpc": "fpc_3.0.2-170225_amd64.deb",
"fpcsrc": "fpc-src_3.0.2-170225_amd64.deb"
},
"v1_6_2": {
"laz": "lazarus-project_1.6.2-1_amd64.deb",
"fpc": "fpc_3.0.0-151205_amd64.deb",
"fpcsrc": "fpc-src_3.0.0-151205_amd64.deb"
},
"v1_6": {
"laz": "lazarus_1.6-0_amd64.deb",
"fpc": "fpc_3.0.0-151205_amd64.deb",
"fpcsrc": "fpc-src_3.0.0-151205_amd64.deb"
},
"v1_4_4": {
"laz": "lazarus_1.4.4-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_4_2": {
"laz": "lazarus_1.4.2-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_4": {
"laz": "lazarus_1.4.0-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_2_6": {
"laz": "lazarus_1.2.6-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2_4": {
"laz": "lazarus_1.2.4-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2_2": {
"laz": "lazarus_1.2.2-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2": {
"laz": "lazarus_1.2.0-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
},
"v1_0_14": {
"laz": "lazarus_1.0.14-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
},
"v1_0_12": {
"laz": "lazarus_1.0.12-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
}
}
};
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "setup-lazarus",
"version": "1.0.34",
"version": "1.0.35",
"description": "Set up your GitHub Actions workflow with a specific version of Lazarus",
"main": "lib/setup-lazarus.js",
"scripts": {
Expand Down
106 changes: 104 additions & 2 deletions src/packages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,25 @@ export function getPackageName(

let pkgs: object = {
"win32": {
"v2_0_6": "lazarus-2.0.6-fpc-3.0.4-win32.exe",
"v2_0_4": "lazarus-2.0.4-fpc-3.0.4-win32.exe"
"v2_0_6" : "lazarus-2.0.6-fpc-3.0.4-win32.exe",
"v2_0_4" : "lazarus-2.0.4-fpc-3.0.4-win32.exe",
"v2_0_2" : "lazarus-2.0.2-fpc-3.0.4-win32.exe",
"v2_0_0" : "lazarus-2.0.0-fpc-3.0.4-win32.exe",
"v1_8_4" : "lazarus-1.8.4-fpc-3.0.4-win32.exe",
"v1_8_2" : "lazarus-1.8.2-fpc-3.0.4-win32.exe",
"v1_8_0" : "lazarus-1.8.0-fpc-3.0.4-win32.exe",
"v1_6_4" : "lazarus-1.6.4-fpc-3.0.2-win32.exe",
"v1_6_2" : "lazarus-1.6.2-fpc-3.0.0-win32.exe",
"v1_6" : "lazarus-1.6.0-fpc-3.0.0-win32.exe",
"v1_4_4" : "lazarus-1.4.4-fpc-2.6.4-win32.exe",
"v1_4_2" : "lazarus-1.4.2-fpc-2.6.4-win32.exe",
"v1_4" : "lazarus-1.4.0-fpc-2.6.4-win32.exe",
"v1_2_6" : "lazarus-1.2.6-fpc-2.6.4-win32.exe",
"v1_2_4" : "lazarus-1.2.4-fpc-2.6.4-win32.exe",
"v1_2_2" : "lazarus-1.2.2-fpc-2.6.4-win32.exe",
"v1_2" : "lazarus-1.2.0-fpc-2.6.2-win32.exe",
"v1_0_14": "lazarus-1.0.14-fpc-2.6.2-win32.exe",
"v1_0_12": "lazarus-1.0.12-fpc-2.6.2-win32.exe"
},
"linux": {
"v2_0_6": {
Expand All @@ -21,6 +38,91 @@ export function getPackageName(
"laz": "lazarus-project_2.0.4-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v2_0_2": {
"laz": "lazarus-project_2.0.2-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v2_0_0": {
"laz": "lazarus-project_2.0.0-0_amd64.deb",
"fpc": "fpc-laz_3.0.4-1_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_4": {
"laz": "lazarus-project_1.8.4-0_amd64.deb",
"fpc": "fpc_3.0.4-3_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_2": {
"laz": "lazarus-project_1.8.2-0_amd64.deb",
"fpc": "fpc_3.0.4-2_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_8_0": {
"laz": "lazarus-project_1.8.0-1_amd64.deb",
"fpc": "fpc_3.0.4-2_amd64.deb",
"fpcsrc": "fpc-src_3.0.4-2_amd64.deb"
},
"v1_6_4": {
"laz": "lazarus-project_1.6.4-0_amd64.deb",
"fpc": "fpc_3.0.2-170225_amd64.deb",
"fpcsrc": "fpc-src_3.0.2-170225_amd64.deb"
},
"v1_6_2": {
"laz": "lazarus-project_1.6.2-1_amd64.deb",
"fpc": "fpc_3.0.0-151205_amd64.deb",
"fpcsrc": "fpc-src_3.0.0-151205_amd64.deb"
},
"v1_6": {
"laz": "lazarus_1.6-0_amd64.deb",
"fpc": "fpc_3.0.0-151205_amd64.deb",
"fpcsrc": "fpc-src_3.0.0-151205_amd64.deb"
},
"v1_4_4": {
"laz": "lazarus_1.4.4-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_4_2": {
"laz": "lazarus_1.4.2-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_4": {
"laz": "lazarus_1.4.0-0_amd64.deb",
"fpc": "fpc_2.6.4-150228_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-150228_amd64.deb"
},
"v1_2_6": {
"laz": "lazarus_1.2.6-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2_4": {
"laz": "lazarus_1.2.4-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2_2": {
"laz": "lazarus_1.2.2-0_amd64.deb",
"fpc": "fpc_2.6.4-140420_amd64.deb",
"fpcsrc": "fpc-src_2.6.4-140420_amd64.deb"
},
"v1_2": {
"laz": "lazarus_1.2.0-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
},
"v1_0_14": {
"laz": "lazarus_1.0.14-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
},
"v1_0_12": {
"laz": "lazarus_1.0.12-0_amd64.deb",
"fpc": "fpc_2.6.2-0_amd64.deb",
"fpcsrc": "fpc-src_2.6.2-0_amd64.deb"
}
}
};
Expand Down

0 comments on commit 83e28ec

Please sign in to comment.