Last active
December 11, 2023 11:52
-
-
Save finestructure/e7fc9a470c41237d51b9579cdbd3adc0 to your computer and use it in GitHub Desktop.
Github CI setup
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 | |
- 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.8', 'swift:5.9'] | |
container: | |
image: ${{ matrix.image }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Get swift version | |
run: swift --version | |
- name: Test | |
run: swift test | |
- name: Build release | |
run: swift build -c release |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment