Skip to content
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

Install Cygwin using cygwin/cygwin-install-action action #33

Merged
merged 1 commit into from
Oct 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 6 additions & 25 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,34 +151,15 @@ jobs:
id: vars
shell: pwsh
run: ./build-exe/vars.ps1 -Bits ${{ matrix.bits }} -Link ${{ matrix.link }} -InstalledPath installed -Sign '${{ github.event.inputs.sign }}'
-
name: Download Cygwin installer
shell: pwsh
run: |
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile setup-x86_64.exe
$expectedHash = (Invoke-WebRequest -Uri https://cygwin.com/sha512.sum).ToString()
$actualHash = Get-FileHash -LiteralPath setup-x86_64.exe -Algorithm SHA512
if (-not($expectedHash.ToLower().Contains("${$actualHash.Hash.ToLower()} setup-x86_64.exe"))) {
throw 'Invalid hash of downloaded cygwin installer'
}
-
name: Install Cygwin
shell: cmd
uses: cygwin/cygwin-install-action@v4
timeout-minutes: 60
run: >
.\setup-x86_64.exe
--root C:\cygwin
--local-package-dir C:\cygwin-packages
--packages ${{ steps.vars.outputs.cygwin-packages }}
--site ${{ steps.vars.outputs.cygwin-mirror }}
--only-site
--quiet-mode
--no-shortcuts
--no-replaceonreboot
--no-version-check
--no-verify
--no-write-registry
--verbose
with:
packages: ${{ steps.vars.outputs.cygwin-packages }}
install-dir: C:\cygwin
site: ${{ steps.vars.outputs.cygwin-mirror }}
add-to-path: false
-
name: Setup Cygwin environment
run: |
Expand Down