CI Build #2221
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: 'CI Build' | |
on: | |
workflow_dispatch: | |
env: | |
SL_OBS_VERSION: ${{ github.ref_name }} | |
GRPC_VERSION: v1.58.0 | |
AWS_SYMB_ACCESS_KEY_ID: ${{secrets.AWS_SYMB_ACCESS_KEY_ID}} | |
AWS_SYMB_SECRET_ACCESS_KEY: ${{secrets.AWS_SYMB_SECRET_ACCESS_KEY}} | |
AWS_RELEASE_ACCESS_KEY_ID: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}} | |
AWS_RELEASE_SECRET_ACCESS_KEY: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}} | |
RELEASE_BUCKET: "slobs-cdn.streamlabs.com/obsplugin/intermediary_packages/" | |
jobs: | |
win64: | |
name: 'Windows 64-bit' | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
ReleaseName: [release] | |
include: | |
- ReleaseName: release | |
ReleaseConfig: RelWithDebInfo | |
env: | |
OS_TAG: "win64" | |
steps: | |
- name: Setup cmake | |
uses: jwlawson/actions-setup-cmake@v1.14 | |
with: | |
cmake-version: '3.28.x' | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Run build script | |
run: powershell -File ./ci/pipeline.ps1 "${{ github.workspace }}" "${{ github.sha }}" | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}} | |
aws-secret-access-key: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}} | |
aws-region: us-west-2 | |
- name: Upload Zip | |
uses: actions/upload-artifact@v2 | |
with: | |
name: slplugin-archive | |
path: ${{ github.workspace }}/slplugin-${{ env.SL_OBS_VERSION }}-${{ github.sha }}.7z | |
sign_binaries: | |
name: Sign Binaries and Build Installer | |
runs-on: windows-latest | |
environment: Release | |
needs: [win64] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download Archive | |
uses: actions/download-artifact@v3 | |
with: | |
name: slplugin-archive | |
- name: Extract and Sign | |
env: | |
CODE_SIGNING_CERTIFICATE: ${{ secrets.CODE_SIGNING_CERTIFICATE }} | |
CODE_SIGNING_PASSWORD: ${{ secrets.CODE_SIGNING_PASSWORD }} | |
run: powershell -File ./ci/sign.ps1 "${{ github.workspace }}" "${{ github.sha }}" | |
- name: Configure AWS credentials | |
uses: aws-actions/configure-aws-credentials@v1 | |
with: | |
aws-access-key-id: ${{secrets.AWS_RELEASE_ACCESS_KEY_ID}} | |
aws-secret-access-key: ${{secrets.AWS_RELEASE_SECRET_ACCESS_KEY}} | |
aws-region: us-west-2 | |
- name: Upload zip to AWS Intermediary | |
run: aws s3 cp slplugin-${{env.SL_OBS_VERSION}}-${{ github.sha }}-signed.zip s3://${{env.RELEASE_BUCKET}} --acl public-read | |
- name: Upload installer to AWS Intermediary | |
run: aws s3 cp slplugin-${{env.SL_OBS_VERSION}}-${{ github.sha }}-signed.exe s3://${{env.RELEASE_BUCKET}} --acl public-read |