28 Commits
1.0.0 ... 1.0.2

Author SHA1 Message Date
64f07b51ff install yarn 2025-09-09 09:41:53 -05:00
66238e0949 don't run CI right now 2025-09-09 09:41:18 -05:00
Kevin Leung
5d98ddc5d0 Remove hardcoded version (#11)
* Just write simple js

* run ci on all branches

* no longer require version

* still need bundling

* use bundled one
2025-02-24 16:54:49 +11:00
Kevin Leung
9b2f64c24d Merge pull request #10 from kiss-lang/update-node
use node20
2024-08-23 09:48:22 +10:00
b14409b769 use node20 2024-08-21 15:51:21 -05:00
Juraj Kirchheim
15f09b0635 Merge pull request #9 from kiss-lang/main
Update Lix and @actions/core
2023-04-30 13:11:23 +02:00
242cc4be49 bump version 2023-04-29 16:53:26 -06:00
c150e9efbd use current npm lix version 2023-04-29 16:52:36 -06:00
e077375d7c rebuild with core 1.10 2023-04-27 13:16:26 -06:00
3d169cd233 rebuild 2023-04-27 13:05:26 -06:00
Kevin Leung
e8d4cb33d9 Upgrade to node 16 2023-04-27 12:48:10 -06:00
Kevin Leung
7d605870c0 Upgrade to node 16 2022-12-04 21:10:56 +11:00
dependabot[bot]
a457e38700 Bump @actions/core from 1.2.6 to 1.9.1
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.6 to 1.9.1.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

---
updated-dependencies:
- dependency-name: "@actions/core"
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-18 19:23:48 +00:00
Kevin Leung
17a898d02a Merge pull request #7 from cedx/feature/lix_version
Bump the default lix version
2021-08-31 07:23:05 +08:00
Cédric Belin
1c5d29e942 Bump the default lix version 2021-08-30 17:46:56 +02:00
Juraj Kirchheim
94538aa220 Merge pull request #6 from cedx/feature/lix_version
Bump the default lix version
2021-08-28 21:25:05 +02:00
Cédric Belin
19335a5c7b Bump the default lix version 2021-08-28 18:03:30 +02:00
Kevin Leung
e4d34f52ab Update build (closes #3) 2020-11-28 15:17:42 +08:00
Kevin Leung
8b61f6099e Bump default lix version 2020-11-28 15:15:10 +08:00
dependabot[bot]
4769ee6330 Bump @actions/core from 1.2.3 to 1.2.6 (#2)
Bumps [@actions/core](https://github.com/actions/toolkit/tree/HEAD/packages/core) from 1.2.3 to 1.2.6.
- [Release notes](https://github.com/actions/toolkit/releases)
- [Changelog](https://github.com/actions/toolkit/blob/main/packages/core/RELEASES.md)
- [Commits](https://github.com/actions/toolkit/commits/HEAD/packages/core)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-10-02 16:34:23 +02:00
Kevin Leung
cd6fb576a0 Cleanup 2020-05-05 13:42:57 +08:00
Kevin Leung
5bb376cc11 debug 2020-05-05 13:40:39 +08:00
Kevin Leung
d0e1ddd718 Debug 2020-05-05 13:37:54 +08:00
Kevin Leung
b3735d0768 Debug 2020-05-05 13:34:23 +08:00
Kevin Leung
638ddf0f30 Cleanup 2020-05-05 13:29:46 +08:00
Kevin Leung
3b57845c71 Test more platforms 2020-05-05 13:28:02 +08:00
Jens Fischer
18272e7393 Update to lix 15.8.11 2020-04-15 16:41:59 +02:00
Jens Fischer
5b9d8a6eb7 Update the readme 2020-03-26 15:55:06 +01:00
12 changed files with 2587 additions and 130 deletions

View File

@@ -1,19 +0,0 @@
name: CI
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: ./
- run: echo $PATH
- run: yarn global bin
- run: ls -lah $(yarn global bin)
- run: lix

22
.github/workflows/ci.yml.bak vendored Normal file
View File

@@ -0,0 +1,22 @@
name: CI
on:
push:
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest
steps:
- uses: actions/checkout@v2
- uses: ./
- run: lix
- run: lix install haxe stable

3
.gitignore vendored
View File

@@ -1,2 +1 @@
node_modules
build/haxe-output.js
node_modules

View File

@@ -3,7 +3,7 @@
### Usage:
```yaml
- uses: lix-pm/setup-lix@master
- uses: lix-pm/setup-lix@1.0.1
with:
lix-version: 15.5.4 # optional
```
lix-version: 15.12.0 # optional
```

View File

@@ -1,13 +1,11 @@
name: 'Setup Lix'
description: 'Setup Lix (a package manager for Haxe)'
name: "Setup Lix"
description: "Setup Lix (a package manager for Haxe)"
branding:
icon: 'package'
color: 'blue'
icon: "package"
color: "blue"
inputs:
lix-version:
description: 'Version of Lix to use'
required: true
default: '15.8.9'
lix-version:
description: "Version of Lix to use"
runs:
using: 'node12'
main: 'build/index.js'
using: "node20"
main: "build/index.js"

View File

@@ -1,7 +0,0 @@
-cp src
-main Main
-js build/haxe-output.js
-dce full
-lib hxnodejs
-D analyzer-optimize
--cmd yarn build

File diff suppressed because it is too large Load Diff

View File

@@ -1,6 +0,0 @@
-D hxnodejs=10.0.0
# @install: lix --silent download "haxelib:/hxnodejs#10.0.0" into hxnodejs/10.0.0/haxelib
-cp ${HAXE_LIBCACHE}/hxnodejs/10.0.0/haxelib/src
--macro allowPackage('sys')
# should behave like other target defines and not be defined in macro context
--macro define('nodejs')

View File

@@ -1,12 +1,12 @@
{
"name": "setup-lix",
"version": "1.0.0",
"license": "MIT",
"scripts": {
"build": "ncc build build/haxe-output.js -o build"
},
"devDependencies": {
"@actions/core": "^1.2.3",
"@zeit/ncc": "^0.21.1"
}
"name": "setup-lix",
"version": "1.0.1",
"license": "MIT",
"scripts": {
"build": "ncc build src/index.js -o build"
},
"devDependencies": {
"@actions/core": "^1.9.1",
"@zeit/ncc": "^0.22.3"
}
}

View File

@@ -1,13 +0,0 @@
import js.node.ChildProcess;
import js.node.Buffer;
using StringTools;
class Main {
static function main() {
var core = js.Lib.require('@actions/core');
var version = core.getInput('lix-version');
Sys.command('yarn', ['global', 'add', 'lix@$version']);
var path = (ChildProcess.execSync('yarn global bin'):Buffer).toString().replace('\n', '');
core.addPath(path);
}
}

7
src/index.js Normal file
View File

@@ -0,0 +1,7 @@
const { execSync } = require("child_process");
const core = require("@actions/core");
const version = core.getInput("lix-version");
execSync("npm install -g yarn");
execSync("yarn global add lix" + (version ? `@${version}` : ""));
const path = execSync("yarn global bin").toString().replaceAll("\n", "");
core.addPath(path);

View File

@@ -2,12 +2,32 @@
# yarn lockfile v1
"@actions/core@^1.2.3":
version "1.2.3"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.2.3.tgz#e844b4fa0820e206075445079130868f95bfca95"
integrity sha512-Wp4xnyokakM45Uuj4WLUxdsa8fJjKVl1fDTsPbTEcTcuu0Nb26IPQbOtjmnfaCPGcaoPOOqId8H9NapZ8gii4w==
"@actions/core@^1.9.1":
version "1.10.0"
resolved "https://registry.yarnpkg.com/@actions/core/-/core-1.10.0.tgz#44551c3c71163949a2f06e94d9ca2157a0cfac4f"
integrity sha512-2aZDDa3zrrZbP5ZYg159sNoLRb61nQ7awl5pSvIq5Qpj81vwDzdMRKzkWJGJuwVvWpvZKx7vspJALyvaaIQyug==
dependencies:
"@actions/http-client" "^2.0.1"
uuid "^8.3.2"
"@zeit/ncc@^0.21.1":
version "0.21.1"
resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.21.1.tgz#44fd4359c54ba34a018a5ccf7a315489db20a733"
integrity sha512-M9WzgquSOt2nsjRkYM9LRylBLmmlwNCwYbm3Up3PDEshfvdmIfqpFNSK8EJvR18NwZjGHE5z2avlDtYQx2JQnw==
"@actions/http-client@^2.0.1":
version "2.1.0"
resolved "https://registry.yarnpkg.com/@actions/http-client/-/http-client-2.1.0.tgz#b6d8c3934727d6a50d10d19f00a711a964599a9f"
integrity sha512-BonhODnXr3amchh4qkmjPMUO8mFi/zLaaCeCAJZqch8iQqyDnVIkySjB38VHAC8IJ+bnlgfOqlhpyCUZHlQsqw==
dependencies:
tunnel "^0.0.6"
"@zeit/ncc@^0.22.3":
version "0.22.3"
resolved "https://registry.yarnpkg.com/@zeit/ncc/-/ncc-0.22.3.tgz#fca6b86b4454ce7a7e1e7e755165ec06457f16cd"
integrity sha512-jnCLpLXWuw/PAiJiVbLjA8WBC0IJQbFeUwF4I9M+23MvIxTxk5pD4Q8byQBSPmHQjz5aBoA7AKAElQxMpjrCLQ==
tunnel@^0.0.6:
version "0.0.6"
resolved "https://registry.yarnpkg.com/tunnel/-/tunnel-0.0.6.tgz#72f1314b34a5b192db012324df2cc587ca47f92c"
integrity sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==
uuid@^8.3.2:
version "8.3.2"
resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2"
integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==