Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
finestructure committed Dec 10, 2023
1 parent 9015e6f commit 6fba9b9
Showing 1 changed file with 36 additions and 15 deletions.
51 changes: 36 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 6fba9b9

Please sign in to comment.