This commit is contained in:
Miwa / Ensan
2024-02-20 18:18:34 +09:00
parent a8a977d3de
commit 495370f168

View File

@ -1,12 +1,7 @@
# 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 ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
name: Swift Build
on:
push:
branches: [ "main", "develop" ]
@ -15,15 +10,14 @@ on:
jobs:
build:
name: Swift on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: swift-actions/setup-swift@v1
with:
swift-version: "5.9"
- 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
swift-version: 5.9
- name: Get swift version
run: swift --version