Skip to content

Commit

Permalink
Merge pull request #56 from SwiftBuildTools/scott/47
Browse files Browse the repository at this point in the history
Use swiftenv to install swift version on macOS CI
  • Loading branch information
ScottRobbins committed Dec 2, 2020
2 parents 6749aad + 5c7096d commit b6c92f7
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ jobs:
runs-on: macos-latest
needs: create_release
steps:
- name: Select latest available Xcode
uses: maxim-lobanov/setup-xcode@1.0
with:
xcode-version: latest
- name: Install swiftenv
run: brew install kylef/formulae/swiftenv
- uses: actions/checkout@v2
- name: Install swift version
# If already installed, will fail
run: swiftenv install || true && if which swiftenv > /dev/null; then eval "$(swiftenv init -)"; fi
- name: Build
run: swift build -c release
- name: Package
Expand All @@ -98,7 +99,7 @@ jobs:
with:
upload_url: ${{ needs.create_release.outputs.upload_url }}
asset_path: changes.tar.gz
asset_name: changes-swift-5-3-macOS-dynamic.tar.gz
asset_name: changes-swift-5-3-1-macOS-dynamic.tar.gz
asset_content_type: application/gzip


Expand Down

0 comments on commit b6c92f7

Please sign in to comment.