Skip to content

Commit

Permalink
ci: download Cadeau only on Windows in package workflow (#960)
Browse files Browse the repository at this point in the history
  • Loading branch information
CBenoit authored Aug 1, 2024
1 parent 062bdf2 commit 0c3c8d7
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,17 +240,15 @@ jobs:
$Destination = Join-Path "webapp" "client"
gh run download ${{ needs.preflight.outputs.run }} -n webapp-client -D "$Destination"
- name: Download Cadeau
shell: pwsh
run: |
$Platform = @{'windows'='win'; 'linux'='linux'}['${{ matrix.os }}']
$Arch = 'x64'
./ci/download-cadeau.ps1 -Platform $Platform -Architecture $Arch
- name: Add msbuild to PATH
if: matrix.os == 'windows' && (matrix.project == 'devolutions-gateway' || matrix.project == 'devolutions-agent')
uses: microsoft/setup-msbuild@v2

- name: Download Cadeau
if: matrix.project == 'devolutions-gateway' && matrix.os == 'windows'
shell: pwsh
run: ./ci/download-cadeau.ps1 -Platform 'win' -Architecture 'x64'

- name: Regenerate Gateway MSI
if: matrix.project == 'devolutions-gateway' && matrix.os == 'windows'
shell: pwsh
Expand Down

0 comments on commit 0c3c8d7

Please sign in to comment.