-
Notifications
You must be signed in to change notification settings - Fork 15.4k
30 lines (27 loc) · 761 Bytes
/
Copy pathswift.yml
File metadata and controls
30 lines (27 loc) · 761 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# 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"
- "en/codes/swift/**/*.swift"
pull_request:
branches: ["main"]
paths:
- "codes/swift/**/*.swift"
- "en/codes/swift/**/*.swift"
workflow_dispatch:
jobs:
build:
name: Swift on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-22.04", "macos-14"]
code-dir: ["codes/swift", "en/codes/swift"]
steps:
- uses: actions/checkout@v4
- name: Build
run: swift build --package-path ${{ matrix.code-dir }}