Skip to content

Commit

Permalink
Created SPM GitHub action
Browse files Browse the repository at this point in the history
Points to latest stable Xcode and Swift version
  • Loading branch information
adammcarter committed Mar 21, 2024
1 parent 3d1c95c commit cc8911d
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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:
workflow_dispatch:
pull_request:
branches: [ "main" ]

jobs:
build:

runs-on: macos-latest

steps:
- name: Setup Xcode version (Latest Stable)
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable


- uses: swift-actions/setup-swift@v2

- name: Get swift version
run: swift --version

- uses: actions/checkout@v3

- name: Build
run: swift build -v

- name: Run tests
run: swift test -v

0 comments on commit cc8911d

Please sign in to comment.