Build version 1.0.1 #48
This file contains hidden or 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
| name: Build AutoIt3 binaries | |
| run-name: Build version ${{ inputs.version }} | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| version: | |
| description: The version of the library | |
| required: true | |
| default: 0.1.0 | |
| type: string | |
| release: | |
| description: Create a release | |
| required: true | |
| default: false | |
| type: boolean | |
| permissions: | |
| contents: write | |
| actions: write | |
| checks: write | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Install AutoIt3 | |
| run: | | |
| $Setup = "autoit-v3-setup.exe" | |
| $Uri = "https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/$Setup" | |
| Invoke-WebRequest -Uri $Uri -OutFile $Setup | |
| & .\$Setup /S | |
| - name: Install SciTE4AutoIt3 | |
| run: | | |
| $Setup2 = "SciTE4AutoIt3.exe" | |
| $Uri2 = "https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/$Setup2" | |
| Invoke-WebRequest -Uri $Uri2 -OutFile $Setup2 | |
| & .\$Setup2 /S | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Compile AutoIt3 files | |
| run: | | |
| $Aut2exe = "C:\Program Files (x86)\AutoIt3\Aut2exe\Aut2exe.exe" | |
| & "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in LaunchAppContainer.au3" -NoNewWindow -Wait | |
| & "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in LearningMode.au3" -NoNewWindow -Wait | |
| & "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in SetAppContainerACL.au3" -NoNewWindow -Wait | |
| - name: Archive binaries | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: executable-files | |
| path: | | |
| LaunchAppContainer*.exe | |
| LearningMode*.exe | |
| SetAppContainerACL*.exe | |
| - name: Zip files | |
| shell: pwsh | |
| run: | | |
| 7z a win32-appcontainer-tools.zip LaunchAppContainer.exe | |
| 7z a win32-appcontainer-tools.zip LearningMode.exe | |
| 7z a win32-appcontainer-tools.zip SetAppContainerACL.exe | |
| 7z a win32-appcontainer-tools.zip bin\ | |
| 7z a win32-appcontainer-tools.zip data\ | |
| 7z a win32-appcontainer-tools.zip LaunchAppContainer.ini | |
| - name: Rename archive with tag | |
| shell: pwsh | |
| run: | | |
| Copy-Item win32-appcontainer-tools.zip -Destination win32-appcontainer-tools-${{ inputs.version }}.zip | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| if: ${{ inputs.release }} | |
| with: | |
| draft: true | |
| name: win32-appcontainer-tools ${{ inputs.version }} | |
| tag_name: ${{ inputs.version }} | |
| files: | | |
| LaunchAppContainer.exe | |
| LearningMode.exe | |
| SetAppContainerACL.exe |