Skip to content

Commit 4c0efd7

Browse files
committed
Merge branch 'release/2.0.3'
2 parents 8f5efaa + 68f3a54 commit 4c0efd7

File tree

7 files changed

+8177
-1563
lines changed

7 files changed

+8177
-1563
lines changed

.github/workflows/tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ jobs:
1717
runs-on: ${{ matrix.operating-system }}
1818
strategy:
1919
matrix:
20-
operating-system: ["ubuntu-16.04", "ubuntu-18.04", "ubuntu-20.04", "macos-10.15"]
21-
swift-version: ["5.0.3", "5.1.5", "5.2.5", "5.3.3"]
20+
operating-system: ["ubuntu-18.04", "ubuntu-20.04", "macos-10.15"]
21+
swift-version: ["5.0.3", "5.1.5", "5.2.5", "5.3.3", "5.4.2"]
2222
exclude:
2323
- operating-system: "ubuntu-20.04"
2424
swift-version: "5.0.3"
@@ -29,4 +29,7 @@ jobs:
2929
- uses: ./
3030
with:
3131
swift-version: ${{ matrix.swift-version }}
32+
- run: echo $PATH
33+
- run: which swift
34+
- run: swiftenv which swift
3235
- run: swift -version

dist/index.js

Lines changed: 349 additions & 136 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.

dist/licenses.txt

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

index.mjs

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,13 @@ async function installEssentials() {
1818
async function installSwiftenv() {
1919
core.startGroup('Install swiftlint');
2020

21-
await exec.exec('git clone --depth 1 https://github.com/kylef/swiftenv.git ~/.swiftenv');
21+
const swiftenvRoot = process.env.HOME + '/.swiftenv'
2222

23-
core.exportVariable('SWIFTENV_ROOT', '~/.swiftenv');
24-
core.addPath('~/.swiftenv/bin');
25-
core.addPath('~/.swiftenv/shims');
23+
await exec.exec('git clone --depth 1 https://github.com/kylef/swiftenv.git ' + swiftenvRoot);
24+
25+
core.exportVariable('SWIFTENV_ROOT', process.env.HOME + '/.swiftenv');
26+
core.addPath(swiftenvRoot + '/bin');
27+
core.addPath(swiftenvRoot + '/shims');
2628

2729
core.endGroup();
2830
}
@@ -38,6 +40,10 @@ async function installSwift(options = {}) {
3840
async function setupSwift() {
3941
const swiftVersion = core.getInput('swift-version', { required: false });
4042

43+
if (swiftVersion) {
44+
core.exportVariable('SWIFT_VERSION', swiftVersion)
45+
}
46+
4147
await installEssentials();
4248
await installSwiftenv();
4349
await installSwift({'swiftVersion': swiftVersion, 'debug': core.isDebug()});

0 commit comments

Comments
 (0)