mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-08-22 15:05:26 +00:00
71 lines
2.2 KiB
YAML
71 lines
2.2 KiB
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" ]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
macos-build:
|
|
name: Swift ${{ matrix.swift-version }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [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 -Xcxx -xobjective-c++ -v
|
|
- name: Run tests
|
|
run: swift test -c release -Xswiftc -strict-concurrency=complete -Xcxx -xobjective-c++ -v
|
|
ubuntu-build:
|
|
name: Swift ${{ matrix.swift-version }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-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
|
|
windows-build:
|
|
name: Swift ${{ matrix.swift-version }} on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [windows-latest]
|
|
env:
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
steps:
|
|
- uses: compnerd/gha-setup-swift@main
|
|
with:
|
|
release-tag-name: "20240626.0"
|
|
github-repo: thebrowsercompany/swift-build
|
|
release-asset-name: installer-amd64.exe
|
|
- 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
|
|
|