diff --git a/.github/workflows/bcny-firebase.yml b/.github/workflows/bcny-firebase.yml index 37f33a10c7..18d125c961 100644 --- a/.github/workflows/bcny-firebase.yml +++ b/.github/workflows/bcny-firebase.yml @@ -1,8 +1,12 @@ name: firebase on: + pull_request: workflow_dispatch: +env: + GITHUB_TOKEN: ${{ github.token }} + jobs: windows: runs-on: windows-latest @@ -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: @@ -47,7 +43,7 @@ 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 ` @@ -55,7 +51,7 @@ jobs: -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