-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (44 loc) · 1.57 KB
/
build.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Build on Windows
on: push
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Checkout ahk-libs
uses: actions/checkout@master
with:
name: thegamerx1/ahk-libs
path: 'Lib'
- name: Trust me I hate this
run: |-
New-Item -Path "$HOME\Documents\Autohotkey" -ItemType Directory -Force
Copy-Item -Recurse -Force "$(pwd)\Lib" "$HOME\Documents\Autohotkey\Lib"
# New-Item -ItemType Junction -Path "$HOME\Documents\Autohotkey\Lib" -Target "$(pwd)\Lib"
- run: choco install autohotkey
- run: Get-ChildItem
- run: Get-ChildItem "$HOME\Documents\Autohotkey\Lib"
- run: Get-ChildItem "."
- run: Get-ChildItem "Lib"
- name: Compile HTML
run: >
& "C:\Program Files\AutoHotkey\AutohotkeyU64.exe" "/ErrorStdOut" "Lib\EzGui\projectCompile.ahk" "$(pwd)\web\index.html" 2>&1 | Out-Host
- name: Compile AHK
run: >
& "C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" "/ErrorStdOut" "/in" "main.ahk" 2>&1 | Out-Host
- run: Get-ChildItem web/minify
- run: Get-ChildItem Lib
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: StartUp.exe
path: StartUp.exe
if-no-files-found: error
- name: Release
if: startsWith(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
uses: softprops/action-gh-release@v1
with:
files: StartUp.exe