Verify cygwin signature

This commit is contained in:
Micah Lee 2022-05-29 09:27:10 -07:00
parent 68b3c1f371
commit 50b770cbc2
No known key found for this signature in database
GPG Key ID: 403C2657CD994F73

View File

@ -97,8 +97,17 @@ jobs:
- run: - run:
name: Install cygwin and required packages name: Install cygwin and required packages
command: | command: |
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile C:\Users\circleci\Downloads\setup-x86_64.exe # Download cygwin installer, signature, and signing key
C:\Users\circleci\Downloads\setup-x86_64.exe -q -s https://mirrors.kernel.org/sourceware/cygwin/ -P libssl-devel,git,gcc-core,make,autoconf,automake,libtool,clang,perl Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe -OutFile .\Downloads\setup-x86_64.exe
Invoke-WebRequest -Uri https://cygwin.com/setup-x86_64.exe.sig -OutFile .\Downloads\setup-x86_64.exe.sig
Invoke-WebRequest -Uri https://cygwin.com/key/pubring.asc -OutFile .\Downloads\pubring.asc
# Verify signature
gpg --import .\Downloads\pubring.asc
gpg --verify .\Downloads\setup-x86_64.exe.sig .\Downloads\setup-x86_64.exe
if($? -ne $true) { throw "cygwin failed to verify" }
# Install cygwin and required packaged
.\Downloads\setup-x86_64.exe -q -s https://mirrors.kernel.org/sourceware/cygwin/ -P libssl-devel,git,gcc-core,make,autoconf,automake,libtool,clang,perl
# Create folders
mkdir C:\Users\circleci\src mkdir C:\Users\circleci\src
mkdir C:\Users\circleci\build mkdir C:\Users\circleci\build