-
-
Notifications
You must be signed in to change notification settings - Fork 14
40 lines (31 loc) · 1 KB
/
swift.yml
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
31
32
33
34
35
36
37
38
39
40
# 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", "develop" ]
pull_request:
branches: [ "main", "develop" ]
jobs:
build:
runs-on: macos-latest
steps:
- uses: swift-actions/setup-swift@e1dca7c4a36344146bbc2803f0d538462477bb37
with:
swift-version: "5.9"
- uses: actions/checkout@v4
with:
submodules: true
- uses: actions/cache@v4
with:
path: |
.build
~/Library/Caches/org.swift.swiftpm
key: ${{ runner.os }}-swift-${{ hashFiles('**/Package.swift') }}
restore-keys: |
${{ runner.os }}-swift-
- name: Build
# TODO: add KeyboardViews
run: swift build --package-path AzooKeyCore --target SwiftUIUtils;swift build --package-path AzooKeyCore --target KeyboardThemes
- name: Run tests
run: echo "There is no test suits yet"