Skip to content

Commit

Permalink
GHA: build and use flatc for the build
Browse files Browse the repository at this point in the history
Prebuild flatc manually and use that to build the flatbuffer code.  This
should help us with the cross-compilation for ARM64.
  • Loading branch information
compnerd committed Nov 16, 2023
1 parent 3cd53b1 commit c6a696c
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion .github/workflows/bcny-firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ jobs:
platform: 'ARM64'

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 1
path: ${{ github.workspace }}/SourceCache/flatbuffers
ref: master
repository: google/flatbuffers

- uses: actions/checkout@v3
with:
fetch-depth: 1
Expand All @@ -39,6 +46,16 @@ jobs:
- name: Install absl-py
run: pip install absl-py

- name: Configure flatbuffers
run:
cmake -B ${{ github.workspace }}/BinaryCache/flatbuffers `
-D CMAKE_BUILD_TYPE=Release `
-G "Visual Studio 17 2022" `
-A x64 `
-S ${{ github.workspace }}/SourceCache/flatbuffers
- name: Build flatc
run: cmake --build ${{ github.workspace }}/BinaryCache/flatbuffers --config Release --target flatc

- name: Configure firebase
run:
cmake -B ${{ github.workspace }}/BinaryCache/firebase `
Expand All @@ -56,7 +73,8 @@ jobs:
-D FIREBASE_INCLUDE_FIRESTORE=YES `
-D FIREBASE_USE_BORINGSSL=YES `
-D MSVC_RUNTIME_LIBRARY_STATIC=NO `
-D FIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=${{ steps.python.outputs.python-path }}
-D FIREBASE_PYTHON_HOST_EXECUTABLE:FILEPATH=${{ steps.python.outputs.python-path }} `
-D FLATBUFFERS_FLATC_EXECUTABLE=${{ github.workspace }}/BinaryCache/flatbuffers/Release/flatc.exe
- name: Build firebase
run: cmake --build ${{ github.workspace }}/BinaryCache/firebase --config Release
- name: Install firebase
Expand Down

0 comments on commit c6a696c

Please sign in to comment.