Skip to content

Commit ba9f40d

Browse files
authored
Merge pull request #110 from tSQLt-org/FixCommunityBuild
Fix community build
2 parents 7f9905f + 76af208 commit ba9f40d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

.github/workflows/build_and_test_on_spawn.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
push:
99
branches:
1010
- main
11-
pull_request:
1211
workflow_dispatch:
1312
inputs:
1413
spawnDataImages:
@@ -23,7 +22,7 @@ env:
2322
'[["SQL2017","mssql-empty:v2017"],["SQL2019","mssql-empty:v2019"]]'
2423

2524
jobs:
26-
# 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖 💖
25+
2726
set-up-env-vars:
2827
name: set up matrix variables
2928
#if: ${{ always() }}
@@ -68,7 +67,6 @@ jobs:
6867

6968
env:
7069
PFX_PATH: ${{ github.workspace }}\tSQLt\Build\tSQLtOfficialSigningKey.pfx
71-
PFX_PASSWORD: ${{ secrets.PFX_PASSWORD }}
7270
ARTIFACT_DIR: ${{ github.workspace }}\artifacts
7371
MSBUILD_HOME: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin
7472

@@ -84,10 +82,10 @@ jobs:
8482
- name: create and install unofficial pfx file for signing dlls
8583
shell: pwsh
8684
run: |
85+
$superSecurePassword = "ExtraSuperSecurePassword1!";
8786
$cert = New-SelfSignedCertificate -FriendlyName "tSQLt_testKey" -Type CodeSigningCert -Subject "CN=localhost" -KeyAlgorithm RSA -HashAlgorithm SHA1 -KeyLength 2048 -SmimeCapabilities -CertStoreLocation "cert:/LocalMachine" -Provider "Microsoft Strong Cryptographic Provider"
88-
$pwd = ConvertTo-SecureString -String "$env:PFX_PASSWORD" -Force -AsPlainText
89-
$pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password $pwd
90-
&"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" "$env:PFX_PASSWORD" tSQLt_OfficialSigningKey
87+
$pfxFile = Export-PfxCertificate -cert ("Cert:\LocalMachine\My\" + $cert.thumbprint) -FilePath $env:PFX_PATH -Password (ConvertTo-SecureString -String $superSecurePassword -Force -AsPlainText)
88+
&"${{ github.workspace }}\tSQLt\Build\SnInstallPfx" "$env:PFX_PATH" $superSecurePassword tSQLt_OfficialSigningKey
9189
9290
- name: ant Build\tSQLt.buildCLR.xml --> Build/output/CLRBuild/
9391
run: ant -buildfile "${{ github.workspace }}\tSQLt\Build\tSQLt.buildCLR.xml" -D"msbuild.path"="$env:MSBUILD_HOME" all

0 commit comments

Comments
 (0)