Skip to content
16 changes: 6 additions & 10 deletions .github/workflows/bcny-firebase.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
name: firebase

on:
pull_request:
workflow_dispatch:

env:
GITHUB_TOKEN: ${{ github.token }}

jobs:
windows:
runs-on: windows-latest
Expand All @@ -19,17 +23,9 @@ jobs:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ${{ github.workspace }}/SourceCache/firebase-cpp-sdk
ref: refs/heads/compnerd/swift
repository: thebrowsercompany/firebase-cpp-sdk

- uses: compnerd/gha-setup-vsdevenv@main
with:
host_arch: amd64
components: 'Microsoft.VisualStudio.Component.VC.Tools.x86.x64;Microsoft.VisualStudio.Component.VC.Tools.ARM64'
arch: ${{ matrix.arch }}

- uses: actions/setup-python@v4
id: python
with:
Expand All @@ -47,15 +43,15 @@ jobs:
-D CMAKE_INSTALL_PREFIX=${{ github.workspace }}/BuildRoot/Library/firebase/usr `
-G "Visual Studio 17 2022" `
-A ${{ matrix.platform }} `
-S ${{ github.workspace }}/SourceCache/firebase-cpp-sdk `
-S ${{ github.workspace }} `
-D FIREBASE_CPP_BUILD_PACKAGE=YES `
-D FIREBASE_GITHUB_ACTION_BUILD=YES `
-D FIREBASE_INCLUDE_LIBRARY_DEFAULT=OFF `
-D FIREBASE_INCLUDE_AUTH=YES `
-D FIREBASE_INCLUDE_FIRESTORE=YES `
-D FIREBASE_USE_BORINGSSL=YES `
-D MSVC_RUNTIME_LIBRARY_STATIC=NO `
-D Python3_EXECUTABLE=${{ steps.python.outputs.python-path }}
-D FIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=${{ steps.python.outputs.python-path }}
- name: Build firebase
run: cmake --build ${{ github.workspace }}/BinaryCache/firebase --config Release
- name: Install firebase
Expand Down