Skip to content

Commit

Permalink
Add CI check for Swift (krahets#875)
Browse files Browse the repository at this point in the history
* Create swift.yml

* Update swift.yml

* Update swift.yml

* Update swift.yml
  • Loading branch information
nuomi1 authored Oct 22, 2023
1 parent fa9607b commit e81c9a8
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# 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: Swift

on:
push:
branches: ["main"]
paths: ["codes/swift/**/*.swift"]
pull_request:
branches: ["main"]
paths: ["codes/swift/**/*.swift"]

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["5.9", "5.8.1", "5.7.3"]
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: ${{ matrix.swift }}
- uses: actions/checkout@v4
- name: Build
run: swift build --package-path codes/swift

0 comments on commit e81c9a8

Please sign in to comment.