Add CI #3
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
name: CI | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
macOS: | |
# https://github.com/actions/runner-images | |
runs-on: macos-13 | |
strategy: | |
matrix: | |
xcode: ['15.0', '14.3.1'] | |
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: 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 | |
Linux: | |
# https://github.com/actions/runner-images | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
image: [ | |
'swift:5.7', | |
'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 |