2021-01-06 20:26:25 +01:00
|
|
|
name: Windows Environment Exploration
|
|
|
|
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
exp:
|
2021-01-06 20:35:25 +01:00
|
|
|
runs-on: windows-latest
|
2021-01-06 20:26:25 +01:00
|
|
|
steps:
|
2021-01-06 20:48:08 +01:00
|
|
|
- name: Set up Node
|
|
|
|
uses: actions/setup-node@v1
|
|
|
|
with:
|
|
|
|
node-version: '10.x'
|
|
|
|
|
|
|
|
- name: Set Node options
|
|
|
|
run: echo "NODE_OPTIONS=--max_old_space_size=4096" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
|
|
|
|
shell: pwsh
|
|
|
|
|
|
|
|
- name: Install & Test pkg
|
|
|
|
run: |
|
|
|
|
npm install -g pkg
|
|
|
|
pkg --help
|
2021-01-06 22:03:37 +01:00
|
|
|
|
2021-01-07 00:27:20 +01:00
|
|
|
- name: Download RH
|
2021-01-07 00:40:04 +01:00
|
|
|
shell: pwsh
|
2021-01-07 17:05:44 +01:00
|
|
|
run: |
|
|
|
|
Invoke-WebRequest -Uri http://www.angusj.com/resourcehacker/resource_hacker.zip -OutFile "resource_hacker.zip"
|
|
|
|
Expand-Archive -Path resource_hacker.zip -DestinationPath resource_hacker
|
2021-01-07 00:27:20 +01:00
|
|
|
|
|
|
|
- name: List RH
|
2021-01-07 17:05:44 +01:00
|
|
|
run: dir resource_hacker
|
2021-01-07 00:27:20 +01:00
|
|
|
|
2021-01-07 17:12:29 +01:00
|
|
|
- name: Adding RH path to dir
|
|
|
|
run: setx path "%path%;d:\\a\\cli\\cli\\resource_hacker"
|
|
|
|
|
|
|
|
- name: Debugging Path
|
|
|
|
shell: pwsh
|
2021-01-07 17:23:03 +01:00
|
|
|
run: |
|
|
|
|
echo "d:\a\cli\cli\resource_hacker" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
|
2021-01-07 17:26:02 +01:00
|
|
|
echo $env:GITHUB_PATH
|
2021-01-07 17:12:29 +01:00
|
|
|
|
2021-01-07 00:19:40 +01:00
|
|
|
- name: ResourceHacker Test
|
|
|
|
run: ResoureHacker -help
|