Skip to content

Commit

Permalink
chore: Adding versions 2.2.4 and 2.2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed May 17, 2023
1 parent 7942c70 commit b4b4854
Show file tree
Hide file tree
Showing 9 changed files with 1,855 additions and 10,344 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@ Set up your GitHub Actions workflow with a specific version of Lazarus
Possible values:

* `dist` - Lazarus package that comes with the Ubuntu dist you chose on `runs-on` and for Windows the latest stable
* `stable` - Installs the latest stable version: 2.2.2
* `stable` - Installs the latest stable version: 2.2.6
* `2.2.6` - comes with `FPC v3.2.2`
* `2.2.4` - comes with `FPC v3.2.2`
* `2.2.2` - comes with `FPC v3.2.2`
* `2.2.0` - comes with `FPC v3.2.2`
* `2.0.12` - comes with `FPC v3.2.0`
Expand Down Expand Up @@ -91,7 +93,7 @@ Unfortunately there are some restrictions:
```yaml
steps:
- uses: actions/checkout@v2
- uses: gcarreno/setup-lazarus@v3.2
- uses: gcarreno/setup-lazarus@v3.2.3
with:
lazarus-version: "stable"
include-packages: "Synapse 40.1"
Expand Down Expand Up @@ -125,7 +127,7 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v2
- name: Install Lazarus
uses: gcarreno/setup-lazarus@v3.2
uses: gcarreno/setup-lazarus@v3.2.3
with:
lazarus-version: ${{ matrix.lazarus-versions }}
include-packages: "Synapse 40.1"
Expand Down
5,984 changes: 881 additions & 5,103 deletions dist/main/index.js

Large diffs are not rendered by default.

5,992 changes: 872 additions & 5,120 deletions dist/post/index.js

Large diffs are not rendered by default.

169 changes: 64 additions & 105 deletions package-lock.json

Large diffs are not rendered by default.

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": "3.2.1",
"version": "3.2.3",
"description": "Set up your GitHub Actions workflow with a specific version of Lazarus",
"main": "lib/main.js",
"scripts": {
Expand Down
34 changes: 31 additions & 3 deletions src/Lazarus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ import * as fs from 'fs';

import { Cache } from './Cache';

//const fs = require('fs');

const StableVersion = '2.2.2';
const StableVersion = '2.2.6';

const pkgs: object = {
"win32": {
"v2_2_6" : "lazarus-2.2.6-fpc-3.2.2-win32.exe",
"v2_2_4" : "lazarus-2.2.4-fpc-3.2.2-win32.exe",
"v2_2_2" : "lazarus-2.2.2-fpc-3.2.2-win32.exe",
"v2_2_0" : "lazarus-2.2.0-fpc-3.2.2-win32.exe",
"v2_0_12" : "lazarus-2.0.12-fpc-3.2.0-win32.exe",
Expand All @@ -40,6 +40,8 @@ const pkgs: object = {
"v1_0_12" : "lazarus-1.0.12-fpc-2.6.2-win32.exe"
},
"win64": {
"v2_2_6" : "lazarus-2.2.6-fpc-3.2.2-win64.exe",
"v2_2_4" : "lazarus-2.2.4-fpc-3.2.2-win64.exe",
"v2_2_2" : "lazarus-2.2.2-fpc-3.2.2-win64.exe",
"v2_2_0" : "lazarus-2.2.0-fpc-3.2.2-win64.exe",
"v2_0_12" : "lazarus-2.0.12-fpc-3.2.0-win64.exe",
Expand All @@ -66,6 +68,16 @@ const pkgs: object = {
"v1_0_12" : "lazarus-1.0.12-fpc-2.6.2-win64.exe"
},
"linux": {
"v2_2_6":{
"laz": "lazarus-project_2.2.6-0_amd64.deb",
"fpc": "fpc-laz_3.2.2-210709_amd64.deb",
"fpcsrc": "fpc-src_3.2.2-210709_amd64.deb"
},
"v2_2_4":{
"laz": "lazarus-project_2.2.4-0_amd64.deb",
"fpc": "fpc-laz_3.2.2-210709_amd64.deb",
"fpcsrc": "fpc-src_3.2.2-210709_amd64.deb"
},
"v2_2_2":{
"laz": "lazarus-project_2.2.2-0_amd64.deb",
"fpc": "fpc-laz_3.2.2-210709_amd64.deb",
Expand Down Expand Up @@ -188,6 +200,16 @@ const pkgs: object = {
}
},
"darwin": {
"v2_2_6":{
"laz": "Lazarus-2.2.4-0-x86_64-macosx.pkg",
"fpc": "fpc-3.2.2.intelarm64-macosx.dmg",
"fpcsrc": "fpc-src-3.2.2-20210709-macosx.dmg"
},
"v2_2_4":{
"laz": "Lazarus-2.2.4-0-x86_64-macosx.pkg",
"fpc": "fpc-3.2.2.intelarm64-macosx.dmg",
"fpcsrc": "fpc-src-3.2.2-20210709-macosx.dmg"
},
"v2_2_2":{
"laz": "Lazarus-2.2.2-0-x86_64-macosx.pkg",
"fpc": "fpc-3.2.2.intelarm64-macosx.dmg",
Expand Down Expand Up @@ -283,6 +305,12 @@ export class Lazarus{
this._Cache.Key = this._LazarusVersion + '-' + this._Arch + '-' + this._Platform;
await this._downloadLazarus();
break;
case '2.2.6':
await this._downloadLazarus();
break;
case '2.2.4':
await this._downloadLazarus();
break;
case '2.2.2':
await this._downloadLazarus();
break;
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const _version = "3.1.0";
export const _version = "3.2.3";
6 changes: 0 additions & 6 deletions src/main.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import * as core from '@actions/core';
import * as inst from './Installer';

import { _version } from './constants';

async function run(): Promise<void> {
try {
// `lazarus-version` input defined in action metadata file
Expand All @@ -14,10 +12,6 @@ async function run(): Promise<void> {
// `with-cache` input defined in action metadata file
let withCache = core.getInput('with-cache') == 'true';

// Get the JSON webhook payload for the event that triggered the workflow
//const payload = JSON.stringify(github.context.payload, undefined, 2)
//console.log(`The event payload: ${payload}`);

let Installer = new inst.Installer(lazarusVersion, includePackages.split(','), withCache);
await Installer.install();

Expand Down
2 changes: 0 additions & 2 deletions src/post.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import * as core from "@actions/core";

import { Cache } from './Cache';

import { _version } from './constants';

async function run(): Promise<void> {

// `with-cache` input defined in action metadata file
Expand Down

0 comments on commit b4b4854

Please sign in to comment.