-
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from tayloraswift/upgrade-ci
upgrade CI to Swift 6.0.2, add workflows for Apple devices
- Loading branch information
Showing
10 changed files
with
181 additions
and
77 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
name: benchmark | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
benchmark-macos: | ||
runs-on: macos-15 | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Homebrew Mac | ||
if: ${{ runner.os == 'Macos' }} | ||
run: | | ||
echo "/opt/homebrew/bin:/usr/local/bin" >> $GITHUB_PATH | ||
brew install jemalloc | ||
- name: Ubuntu deps | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
sudo apt-get install -y libjemalloc-dev | ||
- name: benchmark | ||
run: | | ||
cd ExternalBenchmarks | ||
swift package benchmark |
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: tests | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
linux: | ||
runs-on: ubuntu-24.04 | ||
name: Ubuntu 24.04 | ||
steps: | ||
- name: Install Swift | ||
uses: tayloraswift/swift-install-action@master | ||
with: | ||
swift-prefix: "swift-6.0.2-release/ubuntu2404/swift-6.0.2-RELEASE" | ||
swift-id: "swift-6.0.2-RELEASE-ubuntu24.04" | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run tests | ||
run: Scripts/TestAll | ||
|
||
macos: | ||
runs-on: macos-15 | ||
name: macOS | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Run tests | ||
run: Scripts/TestAll |
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: iOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-15 | ||
name: macOS | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
swift --version | ||
xcrun xcodebuild build -scheme "Noise" -destination \ | ||
"generic/platform=ios" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: tvOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-15 | ||
name: macOS | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
swift --version | ||
xcrun xcodebuild build -scheme "Noise" -destination \ | ||
"generic/platform=tvos" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: visionOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-15 | ||
name: macOS | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
swift --version | ||
xcrun xcodebuild build -scheme "Noise" -destination \ | ||
"generic/platform=visionos" | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: watchOS | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
macos: | ||
runs-on: macos-15 | ||
name: macOS | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Build | ||
run: | | ||
swift --version | ||
xcrun xcodebuild build -scheme "Noise" -destination \ | ||
"generic/platform=watchos" | ||
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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/bash | ||
set -e | ||
swift --version | ||
swift build -c release --build-tests | ||
swift test -c release --skip-build |