Skip to content

Commit

Permalink
Attempt to fix gpg
Browse files Browse the repository at this point in the history
  • Loading branch information
ffried committed Apr 11, 2024
1 parent 4fa3138 commit a697e1b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 10 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
name: Test Release Installation
strategy:
matrix:
swift-version: [ 5.7, 5.8.1 ]
swift-version: [ '5.7', '5.8.1' ]
os-version: [ 'ubuntu-22.04' ]
include:
- swift-version: 5.6
- swift-version: '5.6'
os-version: ubuntu-20.04
runs-on: ${{ matrix.os-version }}
steps:
Expand Down Expand Up @@ -63,10 +63,10 @@ jobs:
name: Test Branch Installation
strategy:
matrix:
swift-version: [ 5.7, 5.8.1 ]
swift-version: [ '5.7', '5.8.1' ]
os-version: [ 'ubuntu-22.04' ]
include:
- swift-version: 5.6
- swift-version: '5.6'
os-version: ubuntu-20.04
runs-on: ${{ matrix.os-version }}
steps:
Expand Down Expand Up @@ -114,7 +114,7 @@ jobs:
matrix:
os-version: [ 'ubuntu-22.04', 'ubuntu-20.04' ]
env:
INPUT_SWIFT_VERSION: 5.8
INPUT_SWIFT_VERSION: '5.8'
runs-on: ${{ matrix.os-version }}
steps:
- uses: actions/checkout@v4
Expand Down
13 changes: 8 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,14 @@ async function install(installBase: string, branchName: string, versionTag: stri
await core.group('Downloading files', async () => {
const swiftURL = `https://download.swift.org/${branchName}/${platform.split('.').join('')}/${versionTag}/${versionTag}-${platform}.tar.gz`;
core.debug(`Swift Download URL: ${swiftURL}...`)
await Promise.all([
tools.downloadTool(swiftURL, swiftPkg),
tools.downloadTool(`${swiftURL}.sig`, swiftSig),
tools.downloadTool('https://swift.org/keys/all-keys.asc', allKeysFile),
]);
let promises: Promise<string>[] = [tools.downloadTool(swiftURL, swiftPkg)];
if (!skipGPGCheck) {
promises.push(
tools.downloadTool(`${swiftURL}.sig`, swiftSig),
tools.downloadTool('https://www.swift.org/keys/all-keys.asc', allKeysFile),
);
}
await Promise.all(promises);
});

if (!skipGPGCheck) {
Expand Down

0 comments on commit a697e1b

Please sign in to comment.