-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions pipeline to build the installers. (#37)
* GitHub Action pipeline builds and uploads the installers to a draft release after a manual trigger. * Add a version number to the `.msi` filenames. * Rework the PowerShell build scripts to make it easier to setup builds on CI or any other machine. * Change from Visual Studio's "devenv.exe" to "devenv.com" in the build script, to show the logs. * Change the configuration of the output `.ahk` and `.exe` files in the `_build` directory, for the most common configuration. * Add any `_autohotkey` folder in the repo to the `.gitignore` file, used for an optional location of a portable AutoHotKey v1 distibution for build. * Recreate the `SwitchApps.sln` file to fix errors. * Tiny tweaks to README.md.
- Loading branch information
1 parent
c2eb95d
commit eb23d8f
Showing
10 changed files
with
253 additions
and
170 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,34 @@ | ||
name: Build installers | ||
run-name: Build installers from "${{ github.ref_name }}" ${{ github.ref_type }} for a draft release | ||
on: workflow_dispatch | ||
jobs: | ||
build: | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install AutoHotkey v1 | ||
shell: pwsh | ||
run: | | ||
$path = (Get-Item .).FullName + "\src\Installer\_scripts"; | ||
Write-Output "Path: $path"; | ||
Invoke-WebRequest "https://www.autohotkey.com/download/1.1/AutoHotkey_1.1.37.02.zip" -OutFile "$path\autohotkey.zip"; | ||
Expand-Archive -Path "$path\autohotkey.zip" -DestinationPath "$path\_autohotkey\" -Force; | ||
Remove-Item -Path "$path\autohotkey.zip" -Force; | ||
- uses: nuget/setup-nuget@v2 | ||
- run: nuget restore .\src\Installer\SwitchApps.sln | ||
|
||
- name: Build the installers | ||
shell: pwsh | ||
run: | | ||
.\src\Installer\_scripts\build_all_installers.ps1 | ||
- name: Upload the files to a draft release | ||
uses: svenstaro/upload-release-action@2.9.0 | ||
with: | ||
file: src/Installer/_build/SwitchApps* | ||
file_glob: true | ||
draft: true | ||
release_name: SwitchApps ${{github.ref_name}} draft release |
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 |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
[Bb]uild/ | ||
bin/ | ||
obj/ | ||
_autohotkey/ | ||
|
||
# Visual Studio 2015/2017 cache/options directory | ||
.vs/ |
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
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
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
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
Oops, something went wrong.