Skip to content

Commit

Permalink
feat: update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
MaraMincho committed Dec 28, 2024
1 parent 2e87190 commit b2d0102
Showing 1 changed file with 24 additions and 12 deletions.
36 changes: 24 additions & 12 deletions .github/workflows/ios.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Swift
name: Swift CI

on:
push:
Expand All @@ -10,20 +10,32 @@ on:

jobs:
build:
name: Swift ${{ matrix.swift }} on ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift: ["6", "5"]
include:
- os: ubuntu-latest
swift: "5"
- os: macos-latest
swift: "5"
runs-on: ${{ matrix.os }}

steps:
- uses: swift-actions/[email protected]
- uses: actions/checkout@v4

- name: Set up Swift
if: ${{ matrix.os == 'macos-latest' }}
run: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer

- name: Install Swift
uses: swift-actions/[email protected]
with:
swift-version: ${{ matrix.swift }}
- name: Get swift version
run: swift --version # Swift 5.10.1
- uses: actions/checkout@v4
- name: Build
run: swift build --package-path SwiftErrorArchiver/
- name: Run tests
run: swift test --package-path SwiftErrorArchiver/

- name: Check Swift version
run: swift --version

- name: Build Project
run: swift build --package-path SwiftErrorArchiver/

- name: Run Tests
run: swift test --package-path SwiftErrorArchiver/

0 comments on commit b2d0102

Please sign in to comment.