-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (60 loc) · 2.09 KB
/
build.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
name: build
on:
pull_request:
branches:
- main
workflow_dispatch:
jobs:
spm:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- branch: development
tag: DEVELOPMENT-SNAPSHOT-2023-08-10-a
options: -Xswiftc "-I${env:SDKROOT}\usr\lib\swift_static\windows"
name: SPM - Swift ${{ matrix.tag }}
steps:
- uses: compnerd/gha-setup-swift@main
with:
tag: ${{ matrix.tag }}
branch: ${{ matrix.branch }}
- uses: actions/checkout@v3
- uses: dsaltares/fetch-gh-release-asset@a40c8b4a0471f9ab81bdf73a010f74cc51476ad4 # v1.1.1
with:
repo: thebrowsercompany/firebase-cpp-sdk
version: tags/20230921.0
file: firebase-windows-amd64.zip
- run: Expand-Archive -Path firebase-windows-amd64.zip -DestinationPath third_party/firebase-development
shell: powershell
- name: Build
run: swift build -v ${{ matrix.options }}
cmake:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
- branch: development
tag: DEVELOPMENT-SNAPSHOT-2023-08-10-a
options: -I\""${env:SDKROOT}\usr\lib\swift_static\windows\""
name: CMake - Swift ${{ matrix.tag }}
steps:
- uses: compnerd/gha-setup-vsdevenv@main
- uses: compnerd/gha-setup-swift@main
with:
tag: ${{ matrix.tag }}
branch: ${{ matrix.branch }}
- uses: actions/checkout@v3
- uses: dsaltares/fetch-gh-release-asset@a40c8b4a0471f9ab81bdf73a010f74cc51476ad4 # v1.1.1
with:
repo: thebrowsercompany/firebase-cpp-sdk
version: tags/20230921.0
file: firebase-windows-amd64.zip
- run: Expand-Archive -Path firebase-windows-amd64.zip -DestinationPath third_party/firebase-development
shell: powershell
- name: Configure
run: cmake -B out -D CMAKE_BUILD_TYPE=Release -G Ninja -S ${{ github.workspace }} -D CMAKE_Swift_FLAGS="${{ matrix.options }}"
- name: Build
run: cmake --build out