-
-
Notifications
You must be signed in to change notification settings - Fork 118
97 lines (89 loc) · 2.83 KB
/
ci.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "*"
workflow_dispatch:
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: true
jobs:
# library-darwin:
# runs-on: macos-14
# name: Test Library (Darwin)
# steps:
# - uses: actions/checkout@v3
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Run tests
# run: make test-library
# library-evolution:
# name: Library (evolution, Darwin)
# runs-on: macos-14
# steps:
# - uses: actions/checkout@v4
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Build for library evolution
# run: make build-for-library-evolution
# library-linux:
# runs-on: ubuntu-latest
# name: Test Library (Linux)
# strategy:
# matrix:
# swift-version: ["5.9", "5.10"]
# steps:
# - uses: swift-actions/setup-swift@v2
# with:
# swift-version: "${{ matrix.swift-version }}"
# - uses: actions/checkout@v3
# - name: Run Tests
# run: swift test
# library-windows:
# runs-on: windows-latest
# name: Test Library (Windows)
# steps:
# # We use BCNY's repo since they have newer builds of Swift
# # which have fixed libcurl in Foundation.
# - uses: compnerd/gha-setup-swift@main
# with:
# release-tag-name: "20231203.0"
# github-repo: "thebrowsercompany/swift-build"
# release-asset-name: installer-amd64.exe
# github-token: ${{ secrets.GITHUB_TOKEN }}
# - uses: actions/checkout@v3
# - name: Run Tests
# run: swift test
test-library:
runs-on: macos-14
name: Test Library
steps:
- uses: actions/checkout@v3
- run: |
brew install --cask docker
open -a /Applications/Docker.app
while ! docker info > /dev/null 2>&1; do echo "Waiting for Docker daemon to start..."; sleep 1; done; echo "Docker daemon is now running."
# - run: |
# brew install colima
# colima version
# colima delete
# colima start --cpu 3 --memory 6 --disk 100 --vm-type=qemu --mount-type=sshfs --dns=1.1.1.1
- uses: supabase/setup-cli@v1
- run: supabase start
- name: Select Xcode 15.2
run: sudo xcode-select -s /Applications/Xcode_15.2.app
- run: make test-library
# examples:
# runs-on: macos-14
# name: Build Examples
# steps:
# - uses: actions/checkout@v3
# - name: Select Xcode 15.2
# run: sudo xcode-select -s /Applications/Xcode_15.2.app
# - name: Prepare Examples Project
# run: cp Examples/Examples/_Secrets.swift Examples/Examples/Secrets.swift
# - name: Build examples
# run: make build-examples