Skip to content

Pin the latest toolchain version #17

Pin the latest toolchain version

Pin the latest toolchain version #17

Workflow file for this run

name: Swift
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: macos-13
steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: |
sudo xcode-select -s /Applications/Xcode_15.0.app
xcodebuild -version
- name: Install Nightly Toolchain
run: |
VERSION=swift-DEVELOPMENT-SNAPSHOT-2023-07-23-a
TOOLCHAIN_URL="https://download.swift.org/development/xcode/$VERSION/$VERSION-osx.pkg"
curl -LO $TOOLCHAIN_URL
installer -target CurrentUserHomeDirectory -pkg $VERSION-osx.pkg
echo "PATH=$HOME/Library/Developer/Toolchains/$VERSION.xctoolchain/usr/bin:${PATH}" >> $GITHUB_ENV
- name: Get Swift version
run: swift --version
- name: Build
run: swift build
- name: Run tests
run: swift test