Fixed string tests #21
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -------------------------------------------------------------------------------- | |
# This workflow was automatically generated by ActionBuilderTool 1.1.0 (42). | |
# (see https://github.com/elegantchaos/ActionBuilderCore for more details) | |
# -------------------------------------------------------------------------------- | |
name: Tests | |
on: [push, pull_request] | |
jobs: | |
linux-swift56: | |
name: Linux (Swift 5.6) | |
runs-on: ubuntu-18.04 | |
container: swift:5.6.2-bionic | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Make Logs Directory | |
run: mkdir logs | |
- name: Swift Version | |
run: swift --version | |
- name: Test (release) | |
run: swift test --configuration release -Xswiftc -enable-testing | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: logs | |
path: logs | |
linux-swift57: | |
name: Linux (Swift 5.7) | |
runs-on: ubuntu-18.04 | |
container: swiftlang/swift:nightly-5.7-bionic | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Make Logs Directory | |
run: mkdir logs | |
- name: Swift Version | |
run: swift --version | |
- name: Test (release) | |
run: swift test --configuration release -Xswiftc -enable-testing | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: logs | |
path: logs | |
macOS-swift56: | |
name: macOS (Swift 5.6) | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Make Logs Directory | |
run: mkdir logs | |
- name: Xcode Version | |
run: | | |
ls -d /Applications/Xcode* | |
sudo xcode-select -s /Applications/Xcode_13.4.1.app | |
xcodebuild -version | |
swift --version | |
- name: Swift Version | |
run: swift --version | |
- name: Test (release) | |
run: swift test --configuration release -Xswiftc -enable-testing | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: logs | |
path: logs | |
macOS-swift57: | |
name: macOS (Swift 5.7) | |
env: | |
TOOLCHAINS: swift | |
runs-on: macos-12 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Make Logs Directory | |
run: mkdir logs | |
- name: Install Toolchain | |
run: | | |
branch="swift-5.7-branch" | |
wget --quiet https://download.swift.org/$branch/xcode/latest-build.yml | |
grep "download:" < latest-build.yml > filtered.yml | |
sed -e 's/-osx.pkg//g' filtered.yml > stripped.yml | |
sed -e 's/:[^:\/\/]/YML="/g;s/$/"/g;s/ *=/=/g' stripped.yml > snapshot.sh | |
source snapshot.sh | |
echo "Installing Toolchain: $downloadYML" | |
wget --quiet https://swift.org/builds/$branch/xcode/$downloadYML/$downloadYML-osx.pkg | |
sudo installer -pkg $downloadYML-osx.pkg -target / | |
ln -s "/Library/Developer/Toolchains/$downloadYML.xctoolchain/usr/bin" swift-latest | |
ls -d /Applications/Xcode* | |
sudo xcode-select -s /Applications/Xcode_13.4.1.app | |
swift --version | |
- name: Xcode Version | |
run: | | |
xcodebuild -version | |
xcrun swift --version | |
- name: Swift Version | |
run: swift --version | |
- name: Test (release) | |
run: export PATH="swift-latest:$PATH"; swift test --configuration release -Xswiftc -enable-testing | |
- name: Upload Logs | |
uses: actions/upload-artifact@v1 | |
if: always() | |
with: | |
name: logs | |
path: logs | |