Files
AzooKeyKanaKanjiConverter/.github/workflows/swift.yml
Kawahara Shotaro 7096568aac [Tools] Swift 5.10のCIを追加する (#69)
* [Tools] Swift 5.10のCIを追加する
Fixes #66

* Update setup-swift action to v2

* Update swift.yml

---------

Co-authored-by: Miwa / Ensan <63481257+ensan-hcl@users.noreply.github.com>
2024-03-18 00:18:13 +09:00

30 lines
870 B
YAML

# 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 Build and Test
on:
push:
branches: [ "main", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
name: Swift ${{ matrix.swift-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
swift-version: ["5.9", "5.10"]
steps:
- uses: swift-actions/setup-swift@v2
with:
swift-version: ${{ matrix.swift-version }}
- uses: actions/checkout@v4
with:
submodules: true
- name: Build
run: swift build -Xswiftc -strict-concurrency=complete -v
- name: Run tests
run: swift test -c release -Xswiftc -strict-concurrency=complete -v