Skip to content

Commit c5d19b4

Browse files
committed
Merge branch 'release/2.0.4'
2 parents 4c0efd7 + 492221e commit c5d19b4

File tree

7 files changed

+27
-5
lines changed

7 files changed

+27
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ steps:
1717
- uses: actions/checkout@v2
1818
- uses: sinoru/actions-setup-swift@v2
1919
with:
20-
swift-version: '5.3.3' # Exact version of a Swift version to use
20+
swift-version: '5.4.2' # Exact version of a Swift version to use
2121
- run: swift build -v
2222
- run: swift test -v
2323
```

dist/index.js

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ async function installSwift(options = {}) {
3333
core.startGroup('Install swift');
3434

3535
await swiftenv.install(options);
36+
await swiftenv.rehash(options);
3637

3738
core.endGroup();
3839
}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "actions-setup-swift",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Setup a Swift environment and optionally downloading and adding it to the PATH",
55
"main": "index.mjs",
66
"scripts": {

swiftenv.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ export async function install(options = {}) {
1313

1414
await exec.exec(commandLine)
1515
}
16+
17+
export async function rehash(options = {}) {
18+
let commandLine = 'swiftenv rehash';
19+
20+
if (options['debug']) {
21+
commandLine += ' --verbose';
22+
}
23+
24+
await exec.exec(commandLine)
25+
}

0 commit comments

Comments
 (0)