-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9015e6f
commit 6fba9b9
Showing
1 changed file
with
36 additions
and
15 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 |
---|---|---|
|
@@ -4,20 +4,41 @@ on: [push] | |
|
||
jobs: | ||
|
||
test-macos: | ||
name: Test macOS | ||
runs-on: self-hosted | ||
macOS: | ||
# https://github.com/actions/runner-images | ||
runs-on: macos-13 | ||
strategy: | ||
matrix: | ||
xcode: ['15.0', '14.3.1'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
# - name: test-macos-xcode | ||
# run: make test-macos-xcode | ||
- name: test-macos-spm | ||
run: make test-macos-spm | ||
- uses: actions/checkout@v3 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "Name" | ||
- name: Get swift version | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift --version | ||
- name: Test | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift test | ||
- name: Build release | ||
run: env DEVELOPER_DIR="/Applications/Xcode_${{ matrix.xcode }}.app" swift build -c release | ||
|
||
# test-linux: | ||
# name: Test Linux | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - name: test | ||
# run: swift test --parallel | ||
Linux: | ||
# https://github.com/actions/runner-images | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
image: [ | ||
'swift:5.8', | ||
'swift:5.9' | ||
] | ||
container: | ||
image: ${{ matrix.image }} | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: git config --global user.email "[email protected]" | ||
- run: git config --global user.name "Name" | ||
- name: Get swift version | ||
run: swift --version | ||
- name: Test | ||
run: swift test | ||
- name: Build release | ||
run: swift build -c release |