Skip to content

Commit

Permalink
added workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
samdeane committed Apr 27, 2021
1 parent 3e4deff commit 55ddfe2
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 3 deletions.
125 changes: 125 additions & 0 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
# --------------------------------------------------------------------------------
# This workflow was automatically generated by Action Status 2.0 (405).
# (see https://actionstatus.elegantchaos.com for more details)
# --------------------------------------------------------------------------------

name: Tests

on: [push, pull_request]

jobs:

macOS-swift-53:
name: macOS (Swift 5.3)
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Xcode Version
run: |
sudo xcode-select -s /Applications/Xcode_12.3.app
xcodebuild -version
swift --version
- name: Swift Version
run: swift --version
- name: Build (Release)
run: swift build -c release
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


macOS-swift-nightly:
name: macOS (Swift Development Nightly)
runs-on: macOS-latest
env:
TOOLCHAINS: swift
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Install Toolchain
run: |
branch="development"
wget --quiet https://swift.org/builds/$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
sudo xcode-select -s /Applications/Xcode_12_beta.app
swift --version
- name: Xcode Version
run: |
xcodebuild -version
xcrun swift --version
- name: Swift Version
run: swift --version
- name: Build (Release)
run: export PATH="swift-latest:$PATH"; swift build -c release
- 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


linux-swift-53:
name: Linux (Swift 5.3)
runs-on: ubuntu-18.04
container: swift:5.3.3-bionic
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Build (Release)
run: swift build -c release
- name: Test (Release)
run: swift test --configuration release -Xswiftc -enable-testing --enable-test-discovery
- name: Upload Logs
uses: actions/upload-artifact@v1
if: always()
with:
name: logs
path: logs


linux-swift-nightly:
name: Linux (Swift Development Nightly)
runs-on: ubuntu-18.04
container: swiftlang/swift:nightly
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Make Logs Directory
run: mkdir logs
- name: Swift Version
run: swift --version
- name: Build (Release)
run: swift build -c release
- 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

4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@
"repositoryURL": "https://github.com/elegantchaos/Lilliput.git",
"state": {
"branch": null,
"revision": "492121efde478338f074af4f1be83c5bc18f4871",
"version": "1.0.1"
"revision": "f2032bd2d9443fed65041ac7ba84234590f1f1ee",
"version": "1.0.2"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
),
],
dependencies: [
.package(url: "https://github.com/elegantchaos/Lilliput.git", from: "1.0.1"),
.package(url: "https://github.com/elegantchaos/Lilliput.git", from: "1.0.2"),

// 💧 A server-side Swift web framework.
.package(url: "https://github.com/vapor/vapor.git", from: "4.44.1"),
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
[comment]: <> (Header Generated by ActionStatus 2.0 - 405)

[![Test results][tests shield]][actions] [![Latest release][release shield]][releases] [![swift 5.3 shield] ![swift 5.4 shield] ![swift dev shield]][swift] ![Platforms: macOS, Linux][platforms shield]

[release shield]: https://img.shields.io/github/v/release/elegantchaos/LilliputWeb
[platforms shield]: https://img.shields.io/badge/platforms-macOS_Linux-lightgrey.svg?style=flat "macOS, Linux"
[tests shield]: https://github.com/elegantchaos/LilliputWeb/workflows/Tests/badge.svg
[swift 5.3 shield]: https://img.shields.io/badge/swift-5.3-F05138.svg "Swift 5.3"
[swift 5.4 shield]: https://img.shields.io/badge/swift-5.4-F05138.svg "Swift 5.4"
[swift dev shield]: https://img.shields.io/badge/swift-dev-F05138.svg "Swift dev"

[swift]: https://swift.org
[releases]: https://github.com/elegantchaos/LilliputWeb/releases
[actions]: https://github.com/elegantchaos/LilliputWeb/actions

[comment]: <> (End of ActionStatus Header)

# Lilliput on the Web

This is a web based host/driver for the Lilliput text adventure engine.
Expand Down

0 comments on commit 55ddfe2

Please sign in to comment.