Skip to content

Commit

Permalink
move win certificate on composite action
Browse files Browse the repository at this point in the history
  • Loading branch information
alemuntoni committed Jun 23, 2023
1 parent 42cafd3 commit 9cb8fa3
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 11 deletions.
19 changes: 19 additions & 0 deletions .github/actions/0_setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ inputs:
mac-certificate-pssw:
description: 'MacOS Certificate Password'
required: false
win-certificate:
description: 'Windows Certificate'
required: false
default: ''
qt-version:
description: 'Qt Version'
required: false
default: '5.15.2'

runs:
using: "composite"
Expand All @@ -21,3 +29,14 @@ runs:
with:
p12-file-base64: ${{ inputs.mac-certificate }}
p12-password: ${{ inputs.mac-certificate-pssw }}
- name: Set CodeSign Certificate Windows
if: ${{ runner.os == 'Windows' && inputs.win-certificate != '' }}
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ inputs.win-certificate }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
version: ${{ inputs.qt-version }}
12 changes: 1 addition & 11 deletions .github/workflows/BuildMeshLab.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,7 @@ jobs:
with:
mac-certificate: ${{ secrets.MACOS_CERTIFICATE }}
mac-certificate-pssw: ${{ secrets.MACOS_CERTIFICATE_PSSW }}
- name: Set CodeSign Certificate Windows
if: runner.os == 'Windows' && env.WIN_CERT != null
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WIN_CERTIFICATE }}'
certutil -decode certificate\certificate.txt certificate\certificate.pfx
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
cache: true
version: ${{ env.QT_VERSION }}
win-certificate: ${{ secrets.WIN_CERTIFICATE }}
- name: Install dependencies
shell: bash
run: |
Expand Down

0 comments on commit 9cb8fa3

Please sign in to comment.