Skip to content

Conversation

jonsimantov
Copy link
Contributor

@jonsimantov jonsimantov commented Jul 21, 2020

After building packaging tools, upload them into an artifact so the rest of the build can retrieve them.

Also contains basic versions of the iOS and Android prereqs and build scripts, and build jobs added to the workflow. Uploads the built iOS and Android SDK artifacts as well.

Desktop needs to wait until desktop workflow is moved into prereqs + build scripts.

@jonsimantov jonsimantov requested a review from vimanyu July 22, 2020 10:59
@jonsimantov jonsimantov marked this pull request as ready for review July 22, 2020 21:23
@jonsimantov
Copy link
Contributor Author

Hi Vimanyu,

Could you take a look at this PR? The manual workflow is currently passing with the most recent run: https://github.com/firebase/firebase-cpp-sdk/actions/runs/178862172

I want to get this merged to avoid monolithic PRs. As we switch from .sh to .py scripts for building I'll update these scripts in a subsequent CL.

Copy link
Contributor

@vimanyu vimanyu left a comment

Choose a reason for hiding this comment

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

Super minor comments but looks good otherwise.

cmake --build .
python demumble_test.py
cd -
mkdir -p packaging-tools
Copy link
Contributor

Choose a reason for hiding this comment

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

Could this mkdir mask issues from the previous step?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't think so, if there are any issues then the script won't get this far.

uses: actions/upload-artifact@v2
with:
name: firebase-cpp-sdk-ios-${{ matrix.architecture }}
path: firebase-cpp-sdk-ios-${{ matrix.architecture }}.tgz
Copy link
Contributor

Choose a reason for hiding this comment

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

By any chance, will we need a version number for these artifacts?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

AFAIK these artifacts are local to the workflow? So I don't think they need versioning. Later on in the workflow, all of these will be joined together into a single binary SDK artifact, and that will be versioned.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, can confirm - they're scoped by the workflow.

Copy link
Contributor

@vimanyu vimanyu left a comment

Choose a reason for hiding this comment

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

LGTM

@jonsimantov jonsimantov merged commit ae74099 into dev Jul 22, 2020
@jonsimantov jonsimantov deleted the feature/cpp-packaging2 branch July 22, 2020 23:11
@firebase firebase locked and limited conversation to collaborators Aug 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

4 participants