Skip to content

Commit a3b6fea

Browse files
committed
schedule sync commmit
1 parent a0bad87 commit a3b6fea

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

.github/workflows/CI.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
branches:
66
- main
77

8+
schedule:
9+
# 台灣的每隔 2 天的午夜 00:00 觸發
10+
- cron: '0 16 */2 * *'
11+
812
concurrency:
913
group: ${{ github.workflow }}-${{ github.ref }}
1014
cancel-in-progress: true
1115

1216
jobs:
1317

14-
Test:
18+
Sync:
1519
strategy:
1620
matrix:
1721
os:
@@ -27,7 +31,24 @@ jobs:
2731
with:
2832
swift: ${{ matrix.swift }}
2933
os: ${{ matrix.os }}
34+
- run: make install
3035

36+
Test:
37+
strategy:
38+
matrix:
39+
os:
40+
- ubuntu-latest
41+
# - macos-latest
42+
swift: ["5.9"]
43+
runs-on: ${{ matrix.os }}
44+
steps:
45+
- uses: actions/checkout@v4
46+
with:
47+
submodules: true
48+
- uses: ./.github/workflows/actions/setup
49+
with:
50+
swift: ${{ matrix.swift }}
51+
os: ${{ matrix.os }}
3152
- run: swift build
3253
- run: swift test
3354

0 commit comments

Comments
 (0)