Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build(custom_runner): armv7 & armv8 Linux precompilation (#1) #3

Draft
wants to merge 31 commits into
base: main
Choose a base branch
from

Conversation

Salakar
Copy link
Member

@Salakar Salakar commented Apr 21, 2024

Description

Provide details of the change, and generalize the change in the PR title above.


Testing

Describe how you've tested these changes. Link any manually triggered Integration tests or CPP binary SDK Packaging Github Action workflows, if applicable.


Type of Change

Place an x the applicable box:

  • Bug fix. Add the issue # below if applicable.
  • New feature. A non-breaking change which adds functionality.
  • Other, such as a build process or documentation change.

Notes

  • Bug fixes and feature changes require an update to the Release Notes section of release_build_files/readme.md.
  • Read the contribution guidelines CONTRIBUTING.md.
  • Changes to the public API require an internal API review. If you'd like to help us make Firebase APIs better, please propose your change in a feature request so that we can discuss it together.

@@ -699,7 +734,7 @@ jobs:

merge_packages:
name: final-merge-packages
runs-on: ubuntu-20.04
runs-on: ubuntu-latest-m
Copy link
Member Author

@Salakar Salakar Apr 22, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
runs-on: ubuntu-latest-m
runs-on: ubuntu-latest-m

Not enough disk space on default runner now with new arches, so using GitHub provided Large Runners here, but requires setup on each with a custom runner name (can all be done through GitHub UI)

@@ -802,7 +837,49 @@ jobs:
with:
name: firebase_cpp_sdk_windows.zip
path: firebase_cpp_sdk_windows.zip

create_linux_only_package:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added a linux only packaging step

@Salakar Salakar force-pushed the arm64-runners branch 5 times, most recently from c115daa to b486ed1 Compare April 22, 2024 16:31
@Salakar Salakar force-pushed the arm64-runners branch 4 times, most recently from ce26e99 to ae78b77 Compare April 23, 2024 02:03
@@ -55,7 +55,7 @@ std::string HomeDir(std::string* out_error) {
std::string XdgDataHomeDir(std::string* out_error) {
const char* data_home = getenv("XDG_DATA_HOME");
if (data_home) return data_home;
return "";
return "/data";
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can be ignored, was just testing if this fixed another issue, get bad_alloc with or without this

# Toolchain file for building 64-bit Linux libraries
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC -std=c++11")
Copy link
Member Author

@Salakar Salakar May 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-fPIC is required for the environment I'm building on

-std=c++11 added to see if resolved a bad_alloc crash - no affect with or without

# Toolchain file for building ARMv7 applications
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a+fp -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a+fp -fPIC -std=c++11")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-fPIC is required for the environment I'm building on

-std=c++11 added to see if resolved a bad_alloc crash - no affect with or without

# Toolchain file for building ARMv8 applications
set (CMAKE_POSITION_INDEPENDENT_CODE ON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv8-a -fPIC")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv8-a -fPIC -std=c++11")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

-fPIC is required for the environment I'm building on

-std=c++11 added to see if resolved a bad_alloc crash - no affect with or without

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant