Skip to content

Commit

Permalink
Merge branch 'release/2.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
sinoru committed Aug 3, 2021
2 parents 4c0efd7 + 492221e commit c5d19b4
Show file tree
Hide file tree
Showing 7 changed files with 27 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ steps:
- uses: actions/checkout@v2
- uses: sinoru/actions-setup-swift@v2
with:
swift-version: '5.3.3' # Exact version of a Swift version to use
swift-version: '5.4.2' # Exact version of a Swift version to use
- run: swift build -v
- run: swift test -v
```
Expand Down
11 changes: 11 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ async function installSwift(options = {}) {
core.startGroup('Install swift');

await swiftenv.install(options);
await swiftenv.rehash(options);

core.endGroup();
}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "actions-setup-swift",
"version": "2.0.3",
"version": "2.0.4",
"description": "Setup a Swift environment and optionally downloading and adding it to the PATH",
"main": "index.mjs",
"scripts": {
Expand Down
10 changes: 10 additions & 0 deletions swiftenv.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@ export async function install(options = {}) {

await exec.exec(commandLine)
}

export async function rehash(options = {}) {
let commandLine = 'swiftenv rehash';

if (options['debug']) {
commandLine += ' --verbose';
}

await exec.exec(commandLine)
}

0 comments on commit c5d19b4

Please sign in to comment.