chore: automate signing #1
Workflow file for this run
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
name: Test signer | |
on: | |
pull_request: | |
branches: | |
- '*' | |
env: | |
BUILD_TYPE: Release | |
jobs: | |
build-windows: | |
name: Windows | |
runs-on: windows-2019 | |
env: | |
CMAKE_GENERATOR: Visual Studio 16 2019 | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
# Configure build environment/dependencies | |
- name: Install MySQL client libs | |
run: | | |
curl -L https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-${{ vars.MYSQL_VERSION }}-winx64.zip -o mysql.zip | |
unzip -d C:/ mysql.zip | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v2 | |
- name: Build and install AWS SDK C++ | |
working-directory: ./scripts | |
run: | | |
.\build_aws_sdk_win.ps1 x64 ${{env.BUILD_TYPE}} ON "${{env.CMAKE_GENERATOR}}" | |
- name: Setup nmake | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Run build installer script | |
run: | | |
.\build_installer.ps1 x64 ${{env.BUILD_TYPE}} "${{env.CMAKE_GENERATOR}}" C:/mysql-${{vars.MYSQL_VERSION}}-winx64 | |
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | |
- name: Run signer script | |
shell: pwsh | |
run: | | |
.\sign_installer.ps1 | |
Install-Jq | |
Invoke-SignInstaller "${{ github.workspace }}/build" x86 ${{env.RELEASE_VERSION}} ${{ secrets.AWS_UNSIGNED_BUCKET }} ${{ secrets.AWS_SIGNED_BUCKET }} ${{ secrets.AWS_KEY }} | |
- name: Upload Windows installer as artifact | |
if: success() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: installers | |
path: ${{ github.workspace }}/wix/*.msi | |
if-no-files-found: error |