-
-
Notifications
You must be signed in to change notification settings - Fork 190
use GitHub actions #1021
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
use GitHub actions #1021
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
7773e0a
use GitHub actions
ErikEJ 9ad29f6
Updates
ErikEJ 322202a
fix build take 1
ErikEJ b038383
Fix typo
ErikEJ 075b612
fix build take 2 ?
ErikEJ 9d18535
fix build take 3
ErikEJ 038bf1a
fix typo
ErikEJ c75a56a
fix file count
ErikEJ d406bf7
fix another typo
ErikEJ c0bc56a
add more useful build output
ErikEJ File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,121 @@ | ||
| name: VSIX | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| branches: | ||
| - 'master' | ||
| pull_request: | ||
| branches: | ||
| - '*' | ||
|
|
||
| permissions: | ||
| id-token: write # This is required for the federated credential to work | ||
|
|
||
| env: | ||
| VERSION: 4.9.${{ github.run_number }} | ||
|
|
||
| jobs: | ||
| build: | ||
|
|
||
| runs-on: windows-latest | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup MSBuild.exe | ||
| uses: microsoft/setup-msbuild@v2 | ||
|
|
||
| - uses: actions/setup-dotnet@v4 | ||
| with: | ||
| dotnet-version: '9.0.201' | ||
|
|
||
| - name: Update Version | ||
| run: | | ||
| ((Get-Content -Path GUI/SqlCe35Toolbox/Properties/AssemblyInfo.cs -Raw) -Replace "4.8.0.0", "${{ env.VERSION }}") | Set-Content -Path GUI/SqlCe35Toolbox/Properties/AssemblyInfo.cs | ||
| ((Get-Content -Path GUI/SqlCe35Toolbox/source.extension.vsixmanifest -Raw) -Replace "4.8.0.0", "${{ env.VERSION }}") | Set-Content -Path GUI/SqlCe35Toolbox/source.extension.vsixmanifest | ||
| ((Get-Content -Path GUI/SSMSToolbox/source.extension.vsixmanifest -Raw) -Replace "4.8.0.0", "${{ env.VERSION }}") | Set-Content -Path GUI/SSMSToolbox/source.extension.vsixmanifest | ||
| working-directory: src | ||
| shell: pwsh | ||
|
|
||
| - name: Install SQL Compact | ||
| shell: cmd | ||
| run: | | ||
| msiexec /i tools\3.5.8109\SSCERuntime-ENU_x86.msi /quiet /qn | ||
| msiexec /i tools\3.5.8109\SSCERuntime-ENU_x64.msi /quiet /qn | ||
| msiexec /i tools\4.0.8902\SSCERuntime_x64-ENU.msi /quiet /qn | ||
|
|
||
| - name: Restore | ||
| shell: cmd | ||
| run: | | ||
| .nuget\nuget restore .\src\GUI\SqlCeToolbox.sln -NonInteractive -Verbosity quiet -Source "https://api.nuget.org/v3/index.json" | ||
| .nuget\nuget restore .\src\API\SqlCeScripting40.sln -NonInteractive -Verbosity quiet -Source "https://api.nuget.org/v3/index.json" | ||
|
|
||
| - name: Build | ||
| working-directory: src | ||
| shell: cmd | ||
| run: | | ||
| msbuild API\SqlCeScripting40.sln /p:configuration=Release /v:m | ||
| msbuild API\Export2SqlCe.sln /p:configuration=Release /p:Platform="Any CPU" /v:m | ||
| msbuild API\ExportSqlCe.sln /p:configuration=Release /p:Platform="Any CPU" /v:m | ||
| msbuild API\ExportSqlCe40.sln /p:configuration=Release /p:Platform="Any CPU" /v:m | ||
| msbuild GUI\SqlCeToolbox.sln /p:configuration=Release /p:DeployExtension=false /p:ZipPackageCompressionLevel=normal /v:m | ||
| msbuild GUI\SqlCe40ToolboxExe.sln /p:configuration=Release /p:Platform="x86" /v:m | ||
|
|
||
| - name: Extract and verify vsix file count | ||
| shell: cmd | ||
| run: | | ||
| mkdir vsix | ||
| 7z x src/GUI/SqlCe35Toolbox/bin/Release/SqlCeVsToolbox.vsix -ovsix -y | ||
| dir /a:-d /s /b "vsix" | find /c ":\" > filecount.txt | ||
| findstr "39" filecount.txt | ||
|
|
||
| - name: Move build output | ||
| #if: github.ref == 'refs/heads/master' && github.repository_owner == 'erikej' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
| run: | | ||
| mv src/GUI/SqlCe35Toolbox/bin/Release/SqlCeVsToolbox.vsix SqliteToolbox-${{ env.VERSION }}.vsix | ||
| mv src/GUI/SSMSToolbox/bin/Release/SSMSToolbox.vsix SqliteSSMSToolbox-${{ env.VERSION }}.vsix | ||
| mv src\GUI\SqlCe40ToolboxExe\bin\Release40\SqlCe40ToolBox.exe SqlCe40ToolBox-${{ env.VERSION }}.exe | ||
| mv src\GUI\SqlCe40ToolboxExe\bin\Release\SqlCe35ToolBox.exe SqlCe35ToolBox-${{ env.VERSION }}.exe | ||
| mv src\API\bin\Release\Export2SqlCE.exe Export2SqlCE-${{ env.VERSION }}.exe | ||
| mv src\API\bin\Release\ExportSqlCE.exe ExportSqlCE-${{ env.VERSION }}.exe | ||
| mv src\API\bin\Release\ExportSqlCE40.exe ExportSqlCE40-${{ env.VERSION }}.exe | ||
|
|
||
| # - name: Azure CLI login with federated credential | ||
| # if: github.event_name != 'pull_request' | ||
| # uses: azure/login@v2 | ||
| # with: | ||
| # client-id: ${{ secrets.AZURE_CLIENT_ID }} | ||
| # tenant-id: ${{ secrets.AZURE_TENANT_ID }} | ||
| # subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }} | ||
|
|
||
| # - name: Install dotnet sign | ||
| # if: github.event_name != 'pull_request' | ||
| # run: dotnet tool install --global sign --prerelease | ||
|
|
||
| # - name: Sign VSIX packages and .exe files # Causes signing requests - max is 5000 per month | ||
| # if: github.ref == 'refs/heads/master' && github.repository_owner == 'erikej' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
| # run: sign code trusted-signing ./*.vsix ./*.exe ` | ||
| # --trusted-signing-account ErikEJ ` | ||
| # --trusted-signing-certificate-profile ErikEJCert ` | ||
| # --trusted-signing-endpoint https://weu.codesigning.azure.net ` | ||
| # -fl fileslist.txt ` | ||
| # --verbosity information | ||
|
|
||
| - name: Publish artifacts | ||
| # if: github.ref == 'refs/heads/master' && github.repository_owner == 'erikej' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: Artifacts | ||
| path: | | ||
| *.vsix | ||
| *.exe | ||
|
|
||
| - name: Publish to Open VSIX Gallery | ||
| if: github.ref == 'refs/heads/master' && github.repository_owner == 'erikej' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | ||
| run: | | ||
| $ErrorActionPreference='Stop' | ||
| (new-object Net.WebClient).DownloadString("https://raw.github.com/madskristensen/ExtensionScripts/master/AppVeyor/vsix.ps1") | iex | ||
| Vsix-PublishToGallery | ||
| shell: pwsh | ||
| continue-on-error: false | ||
Binary file not shown.
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| ISqlCeScripting.dll | ||
| QueryPlanVisualizer.dll | ||
| SqlCeScripting.dll | ||
| SqlCeScripting40.dll | ||
| SqlCeToolbox.Common.dll | ||
| SqlCeToolbox.DDEX4.dll | ||
| SqlCeToolBoxSyncFxLib.dll | ||
| SqlCeVsToolbox.dll | ||
| SQLiteScripting.dll | ||
| SqlCe40ToolBox.exe | ||
| SqlCe35ToolBox.exe |
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
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
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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.