-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
eebecc4
commit b73b751
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
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 | ||
New-Item -ItemType Junction -Path "$HOME\Documents\Autohotkey\lib" -Target "$(pwd)\Lib" | ||
- run: choco install autohotkey | ||
- name: Compile HTML | ||
run: > | ||
& "C:\Program Files\AutoHotkey\AutohotkeyU64.exe" "Lib\EzGui\projectCompile.ahk" "$(pwd)\web\index.html" | ||
- name: Compile AHK | ||
run: > | ||
& "C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" "/in" "main.ahk" | ||
- run: Get-ChildItem web/minify | ||
|
||
- 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 |