Skip to content

Commit

Permalink
Create swift.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cham-s authored Nov 3, 2024
1 parent 2a6691a commit ab846de
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: CI

on:
push:
branches:
- 'main'
pull_request:
branches:
- 'main'

jobs:
macOS-15:
runs-on: macos-15

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

Ubuntu-latest:
strategy:
matrix:
swift:
- '6.0.2'
runs-on: ubuntu-latest
container: swift:${{ matrix.swift }}

steps:
- uses: actions/checkout@v4
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

0 comments on commit ab846de

Please sign in to comment.