diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5e82a8456..0f157570d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -45,6 +45,21 @@ jobs: with: version: ${{matrix.emacs_version}} + # Emacs needs GPG to verify package signatures. The MSYS2 GPG + # bundled with the GitHub Windows runner cannot handle native + # Windows paths, so we install a native Windows port of GPG + # instead. + - name: Setup Scoop and GPG on Windows + if: startsWith (matrix.os, 'windows') + uses: MinoruSekine/setup-scoop@v4.0.2 + with: + apps: gpg + scoop_update: false + - name: Add GPG at the beginning of PATH on Windows + if: startsWith (matrix.os, 'windows') + run: | + echo "C:\Users\runneradmin\scoop\apps\gpg\current\bin" >> $env:GITHUB_PATH + - name: Install Eldev if: "!startsWith (matrix.os, 'windows')" run: curl -fsSL https://raw.github.com/doublep/eldev/master/webinstall/github-eldev | sh