Skip to content

Commit 1ef6552

Browse files
committed
GHA: setup initial workflow for building firebase
The current release of firebase is built in a way that makes debugging impossible as trying to use DWARF debug information would yield undefined symbols (see firebase/firebase-cpp-sdk#793, llvm/llvm-project#62182).
1 parent f1b36af commit 1ef6552

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

.github/workflows/firebase.yml

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: firebase
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
windows:
8+
runs-on: windows-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
fetch-depth: 1
14+
path: ${{ github.workspace }}/SourceCache/firebase-cpp-sdk
15+
ref: refs/heads/main
16+
repository: firebase/firebase-cpp-sdk
17+
18+
- uses: compnerd/gha-setup-vsdevenv@main
19+
with:
20+
host_arch: amd64
21+
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64'
22+
arch: amd64
23+
24+
- name: Configure firebase
25+
run:
26+
cmake -B ${{ github.workspace }}/BinaryCache/firebase `
27+
-D BUILD_SHARED_LIBS=NO `
28+
-D CMAKE_BUILD_TYPE=Release `
29+
-D CMAKE_C_COMPILER=cl `
30+
-D CMAKE_C_FLAGS="/GS- /Gw /Gy /Oi /Oy /Zi /Zc:inline /Zc:preprocessor" `
31+
-D CMAKE_CXX_COMPILER=cl `
32+
-D CMAKE_CXX_FLAGS="/GS- /Gw /Gy /Oi /Oy /Zi /Zc:inline /Zc:preprocessor /Zc:__cplusplus" `
33+
-D CMAKE_MT=mt `
34+
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/firebase/usr `
35+
-G "Visual Studio 2022" `
36+
-A x64 `
37+
-S ${{ github.workspace }}/SourceCache/firebase-cpp-sdk `
38+
-D FIREBASE_INCLUDE_LIBRARY_DEFAULT=OFF `
39+
-D FIREBASE_INCLUDE_AUTH=YES `
40+
-D FIREBASE_USE_BORINGSSL=YES
41+
- name: Build firebase
42+
run: cmake --build ${{ github.workspace }}/BinaryCache/firebase
43+
- name: Install firebase
44+
run: cmake --build ${{ github.workspace }}/BinaryCache/firebase
45+
46+
- uses: actions/upload-artifact@v3
47+
with:
48+
name: firebase-windows-amd64
49+
path: ${{ github.workspace }}/BuildRoot/Library/firebase

0 commit comments

Comments
 (0)