Skip to content

Commit

Permalink
ci: remove legacy Windows installer from CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
thenextman committed Feb 29, 2024
1 parent 36c939b commit b0d1e1e
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 35 deletions.
7 changes: 0 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -439,13 +439,6 @@ jobs:
./ci/tlk.ps1 package -Platform ${{ matrix.os }} -Architecture ${{ matrix.arch }} -CargoProfile ${{ needs.preflight.outputs.rust-profile }}
if ($Env:RUNNER_OS -eq "Windows") {
$MsiFilename = "${{ steps.load-variables.outputs.dgateway-package }}"
$BaseMsiFileName = $MsiFilename.TrimEnd(".msi")
$Env:DGATEWAY_PACKAGE = $BaseMsiFileName + "-legacy.msi"
./ci/tlk.ps1 package -PackageOption legacy -Platform ${{ matrix.os }} -Architecture ${{ matrix.arch }} -CargoProfile ${{ needs.preflight.outputs.rust-profile }}
}
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down
12 changes: 0 additions & 12 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -307,18 +307,6 @@ jobs:
./ci/tlk.ps1 package -PackageOption assemble
- name: Repackage legacy msi
if: matrix.project == 'devolutions-gateway'
shell: pwsh
run: |
$PackageRoot = Join-Path ${{ runner.temp }} devolutions-gateway
$Env:DGATEWAY_EXECUTABLE = Get-ChildItem -Path $PackageRoot -Recurse -Include '*DevolutionsGateway*.exe' | Select -First 1
$Env:DGATEWAY_PACKAGE = Get-ChildItem -Path $PackageRoot -Recurse -Include '*DevolutionsGateway*-legacy.msi' | Select -First 1
$Env:DGATEWAY_PSMODULE_PATH = Join-Path $PackageRoot PowerShell DevolutionsGateway
$Env:DGATEWAY_PSMODULE_CLEAN = "1"
./ci/tlk.ps1 package -PackageOption legacy
- name: Sign packages
if: matrix.project == 'devolutions-gateway'
shell: pwsh
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,6 @@ jobs:
run: |
# workflow_call: The same artifacts persist across the entire run, so the PowerShell/DevolutionsGateway directory will still exist from the CI workflow
Remove-Item (Join-Path devolutions-gateway PowerShell DevolutionsGateway) -Recurse -ErrorAction Ignore
# Swap the latest msi for the legacy one
$RootPath = Join-Path devolutions-gateway Windows x86_64
$NewMsi = Get-ChildItem -Path "$RootPath" -Recurse -Include '*DevolutionsGateway*.msi' | Where-Object { $_.Name -NotLike "*legacy*"} | Select -First 1
Remove-Item $NewMsi -Force
$OldMsi = Get-ChildItem -Path "$RootPath" -Recurse -Include '*DevolutionsGateway*.msi' | Select -First 1
Rename-Item -Path $OldMsi -NewName $NewMsi.Name
- name: Create GitHub release
shell: pwsh
Expand Down Expand Up @@ -384,16 +378,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh run download ${{ needs.preflight.outputs.run }} -n devolutions-gateway --repo $Env:GITHUB_REPOSITORY

- name: Manage artifacts
shell: pwsh
run: |
# Swap the latest msi for the legacy one
$RootPath = Join-Path Windows x86_64
$NewMsi = Get-ChildItem -Path "$RootPath" -Recurse -Include '*DevolutionsGateway*.msi' | Where-Object { $_.Name -NotLike "*legacy*"} | Select -First 1
Remove-Item $NewMsi -Force
$OldMsi = Get-ChildItem -Path "$RootPath" -Recurse -Include '*DevolutionsGateway*.msi' | Select -First 1
Rename-Item -Path $OldMsi -NewName $NewMsi.Name
- name: Prepare upload
id: prepare
shell: pwsh
Expand Down

0 comments on commit b0d1e1e

Please sign in to comment.