From 83e28ecb9b221b4e935846564743b755a54cab94 Mon Sep 17 00:00:00 2001 From: Gustavo Carreno Date: Thu, 9 Apr 2020 23:57:43 +0100 Subject: [PATCH] refactor: Added the complete list of packages available at sourceforge --- README.md | 38 ++++++++++++++--- dist/index.js | 104 ++++++++++++++++++++++++++++++++++++++++++++- package-lock.json | 2 +- package.json | 2 +- src/packages.ts | 106 +++++++++++++++++++++++++++++++++++++++++++++- 5 files changed, 241 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index ab5b8b9..c3f5201 100644 --- a/README.md +++ b/README.md @@ -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 @@ -27,7 +53,7 @@ steps: - run: YourTestProject ``` -## More elaborate example usage +## Matrix example usage ```yaml name: build @@ -51,7 +77,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Install Lazarus - uses: gcarreno/setup-lazarus@v1.0.16 + uses: gcarreno/setup-lazarus@v1.0.34 with: lazarus-version: ${{ matrix.lazarus-versions }} - name: Build the test app diff --git a/dist/index.js b/dist/index.js index 3aa4bfe..c94e8b5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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": { @@ -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" } } }; diff --git a/package-lock.json b/package-lock.json index c36914a..675e772 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "setup-lazarus", - "version": "1.0.34", + "version": "1.0.35", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 23414d1..556a800 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/packages.ts b/src/packages.ts index cf0e38b..79af31a 100644 --- a/src/packages.ts +++ b/src/packages.ts @@ -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": { @@ -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" } } };