mirror of
https://github.com/krahets/hello-algo.git
synced 2024-12-24 03:56:28 +08:00
84bb11522e
* feat: remove setup-swift * Test failure * Test success --------- Co-authored-by: Yudong Jin <krahets@163.com>
25 lines
614 B
YAML
25 lines
614 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
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths: ["codes/swift/**/*.swift"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths: ["codes/swift/**/*.swift"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Swift on ${{ matrix.os }}
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: ["ubuntu-22.04", "macos-14"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Build
|
|
run: swift build --package-path codes/swift
|