Skip to content

Commit 8b3d178

Browse files
authored
Port this action to PowerShell (#11)
1 parent d0a757c commit 8b3d178

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+619
-5116
lines changed

.gitattributes

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,26 @@
11
* text=auto
22
.* text
33

4-
*.cjs text
4+
*.config text
5+
*.cs text diff=csharp
6+
*.csproj text
57
*.css text diff=css
6-
*.esproj text
78
*.html text diff=html
89
*.http text
9-
*.js text
10+
*.ini text
11+
*.iss text
1012
*.json text
1113
*.md text diff=markdown
12-
*.mjs text
1314
*.ps1 text
1415
*.slnx text
1516
*.sql text
1617
*.svg text
17-
*.ts text
1818
*.txt text
19+
*.xml text
1920
*.yaml text
2021
*.yml text
2122

23+
*.gif binary
2224
*.ico binary
2325
*.jpg binary
2426
*.pdf binary

.github/workflows/ContinuousIntegration.yaml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Fetch sources
13-
uses: actions/checkout@v4
14-
- name: Set up Node.js
15-
uses: actions/setup-node@v4
16-
with:
17-
cache: npm
18-
node-version: latest
13+
uses: actions/checkout@v5
1914
- name: Install dependencies
20-
run: npm ci
15+
run: Install-PSResource Pester -TrustRepository
2116
- name: Run tests
2217
run: ./invoke.ps1 Test
2318
run:
@@ -27,5 +22,6 @@ jobs:
2722
matrix:
2823
platform: [ubuntu-latest, windows-latest]
2924
steps:
30-
- uses: cedx/setup-hashlink@main
25+
- name: Set up HashLink
26+
uses: cedx/setup-hashlink@main
3127
- run: hl --version

.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
/**/*.user
22
/.idea/
33
/.vs/
4-
/lib/
5-
/node_modules/
6-
/npm-debug.log
7-
/obj/
84
/var/

ChangeLog.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Version [7.0.0](https://github.com/cedx/setup-hashlink/compare/v6.2.0...v7.0.0)
4+
- Ported the source code to [PowerShell](https://learn.microsoft.com/en-us/powershell).
5+
36
## Version [6.2.0](https://github.com/cedx/setup-hashlink/compare/v6.1.0...v6.2.0)
47
- Added [HashLink](https://hashlink.haxe.org) 1.15 to the supported releases.
58

ReadMe.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Setup HashLink VM
2-
![Node.js](https://badgen.net/badge/node/%3E%3D20.0.0/green) ![Action](https://badgen.net/badge/action/v6.2.0/blue) ![License](https://badgen.net/badge/license/MIT/blue)
2+
![PowerShell](https://badgen.net/static/pwsh/%3E%3D7.5/green) ![Action](https://badgen.net/static/action/v7.0.0/blue) ![License](https://badgen.net/static/license/MIT/blue)
33

44
Set up your [GitHub Actions](https://docs.github.com/en/actions) workflow with a specific version of the [HashLink VM](https://hashlink.haxe.org).
55

66
## Documentation
77
- [User guide](https://github.com/cedx/setup-hashlink/wiki)
8-
- [API reference](https://cedx.github.io/setup-hashlink)
98
- [Examples](https://github.com/cedx/setup-hashlink/tree/main/example)
109

1110
## Development

SetupHashLink.psd1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
@{ ModuleVersion = "7.0.0" }

action.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
author: Cédric Belin
12
name: Setup HashLink VM
23
description: Set up your GitHub Actions workflow with a specific version of the HashLink VM.
3-
author: Cédric Belin
44

55
branding:
66
color: purple
@@ -13,5 +13,11 @@ inputs:
1313
required: false
1414

1515
runs:
16-
using: node20
17-
main: bin/SetupHashLink.cjs
16+
using: composite
17+
steps:
18+
- run: Add-Content $Env:GITHUB_PATH ${{github.action_path}}
19+
shell: pwsh
20+
- run: start.ps1
21+
shell: pwsh
22+
env:
23+
SETUP_HASHLINK_VERSION: ${{inputs.version}}

bin/SetupHashLink.cjs

Lines changed: 0 additions & 63 deletions
This file was deleted.

docs/.nojekyll

Lines changed: 0 additions & 1 deletion
This file was deleted.

docs/assets/hierarchy.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)