Build version 6.0.1 #6
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 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: | |
| - uses: actions/checkout@v4 | |
| - name: Cache tools | |
| uses: actions/cache@v4 | |
| id: cache | |
| with: | |
| path: | | |
| autoit-v3-setup.exe | |
| SciTE4AutoIt3.exe | |
| C:\Program Files (x86)\AutoIt3\SciTE\Au3Stripper | |
| key: v3 | |
| - name: Download tools | |
| if: steps.cache.outputs.cache-hit != 'true' | |
| run: | | |
| curl -sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?autoit3/autoit-v3-setup.exe -o autoit-v3-setup.exe ` | |
| -sSfL https://www.autoitscript.com/cgi-bin/getfile.pl?../autoit3/scite/download/SciTE4AutoIt3.exe -o SciTE4AutoIt3.exe ` | |
| -sSfLO https://www.autoitscript.com/autoit3/scite/download/Au3Stripper.zip | |
| Expand-Archive Au3Stripper.zip "${env:ProgramFiles(x86)}\AutoIt3\SciTE\Au3Stripper" | |
| - name: Install tools | |
| run: | | |
| Start-Process autoit-v3-setup.exe -ArgumentList /S -NoNewWindow -Wait | |
| Start-Process SciTE4AutoIt3.exe -ArgumentList /S -NoNewWindow -Wait | |
| - name: Compile | |
| run: | | |
| Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in AppControlHelper.au3" -NoNewWindow -Wait | |
| Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in AppControlPolicy.au3" -NoNewWindow -Wait | |
| Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in AppControlTask.au3" -NoNewWindow -Wait | |
| Start-Process "${env:ProgramFiles(x86)}\AutoIt3\AutoIt3.exe" "`"${env:ProgramFiles(x86)}\AutoIt3\SciTE\AutoIt3Wrapper\AutoIt3Wrapper.au3`" /NoStatus /prod /in AppControlTray.au3" -NoNewWindow -Wait | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: executable-files | |
| path: | | |
| AppControlHelper*.exe | |
| AppControlPolicy*.exe | |
| AppControlTask*.exe | |
| AppControlTray*.exe | |
| if-no-files-found: error | |
| - name: Zip package (AppControlPolicy) | |
| run: 7z a AppControlPolicy.zip AppControlPolicy*.exe | |
| - name: Zip package (AppControlTray) | |
| run: 7z a AppControlTray.zip AppControlHelper*.exe AppControlPolicy*.exe AppControlTask*.exe AppControlTray*.exe | |
| - name: Rename AppControlPolicy zip with tag | |
| shell: pwsh | |
| run: | | |
| Copy-Item AppControlPolicy.zip -Destination AppControlPolicy-${{ inputs.version }}.zip | |
| - name: Rename AppControlTray zip with tag | |
| shell: pwsh | |
| run: | | |
| Copy-Item AppControlTray.zip -Destination AppControlTray-${{ inputs.version }}.zip | |
| - name: Create release | |
| uses: softprops/action-gh-release@v2 | |
| if: ${{ inputs.release }} | |
| with: | |
| draft: true | |
| name: App Control Tray and Policy Manager ${{ inputs.version }} | |
| tag_name: ${{ inputs.version }} | |
| files: | | |
| AppControlPolicy-${{ inputs.version }}.zip | |
| AppControlTray-${{ inputs.version }}.zip |