-
Notifications
You must be signed in to change notification settings - Fork 46
Fix the package logic, and add windows build python logic #250
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
Merged
Merged
Changes from all commits
Commits
Show all changes
44 commits
Select commit
Hold shift + click to select a range
b3a25bb
calculate hash for tgzs
86259d0
don't need basename
ecc8051
append hash instead of over write
8b6330d
correct the location
19f001b
make warning message clear
f475507
Merge https://github.com/firebase/firebase-unity-sdk into prepare_tgz
ec25028
ping to cpp latest release
b07269a
sync up the name
707172c
try multi arg
f55878b
test another tag
f0416e6
try again
4dd980d
remove unused
5ea1f55
clean up issue
50db037
fix unity 2019 linux version
d542c61
Merge https://github.com/firebase/firebase-unity-sdk into prepare_tgz
4581ad9
test windows command
eb2a6d1
Merge https://github.com/firebase/firebase-unity-sdk into prepare_tgz
459299f
add build target to desktop workflow
d7da3c1
update python executable path
cynthiajoan ae0098d
try again with contain test
a718036
Merge branch 'prepare_tgz' of https://github.com/firebase/firebase-un…
2ba0eac
contains test
22bc9f1
put windows in the right logic
7646cbd
test windows using python script
226ce17
try again
3b28318
try only build dotnet4
e46e155
try to reduce the android sdk size
d41a33b
Merge https://github.com/firebase/firebase-unity-sdk into prepare_tgz
675b5b1
test android size
10caeeb
Merge https://github.com/firebase/firebase-unity-sdk into prepare_tgz
c0760d8
add output folder to ignore
6f0ef21
try some package.yml fix
7a6bcce
more print out
11b79f3
try to fix the syntax
35f71cb
invalid symbol fix
90a1011
Test new branch
37d7d76
more package workflow fix
9867a44
try again for desktop pick platform
ff60d7a
try windows build
96f2f5d
revert unnecessary files
ff9bbf8
fix
0397ff5
add cpp tag version to build job names
03a1ebf
Add release label for package
ccd0a59
review feedback
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,17 +11,34 @@ on: | |
skipIntegrationTests: | ||
description: 'skip integration tests?' | ||
default: 0 | ||
required: false | ||
create_new_branch: | ||
description: 'If we need to create new branch to package guids update. 0 means no creation and 1 means create. If working_branch set, will ignore this value. ' | ||
default: 0 | ||
required: false | ||
working_branch: | ||
description: 'If already a working in progress release branch' | ||
default: None | ||
required: false | ||
download_ios_run: | ||
description: 'run id for ios.yml' | ||
required: false | ||
download_android_run: | ||
description: 'run id for android.yml' | ||
required: false | ||
download_desktop_run: | ||
description: 'run id for sdk_build.yml' | ||
required: false | ||
release_label: | ||
description: 'If the package is intended to run for a release, put <version>-RC## for label' | ||
required: false | ||
|
||
env: | ||
# Use SHA256 for hashing files. | ||
hashCommand: "sha256sum" | ||
|
||
jobs: | ||
package_sdks: | ||
name: package-${{matrix.os}} | ||
name: package-${{matrix.os}}-${{github.event.inputs.release_label}} | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: false | ||
|
@@ -31,6 +48,17 @@ jobs: | |
- os: ubuntu-latest | ||
package_dir: output | ||
steps: | ||
- name: Print out inputs | ||
shell: bash | ||
run: | | ||
echo operation_system: ${{ github.event.inputs.operating_systems }} | ||
echo skipIntegrationTests: ${{ github.event.inputs.skipIntegrationTests }} | ||
echo create_new_branch: ${{ github.event.inputs.create_new_branch }} | ||
echo working_branch: ${{ github.event.inputs.working_branch }} | ||
echo download_ios_run: ${{ github.event.inputs.download_ios_run }} | ||
echo download_android_run: ${{ github.event.inputs.download_android_run }} | ||
echo download_desktop_run: ${{ github.event.inputs.download_desktop_run }} | ||
|
||
- name: Check out base branch | ||
uses: actions/[email protected] | ||
with: | ||
|
@@ -55,20 +83,20 @@ jobs: | |
pip install -r scripts/gha/requirements.txt | ||
|
||
- name: Name new branch | ||
if: github.event.inputs.working_branch == 'None' | ||
if: github.event.inputs.working_branch == '' && github.event.inputs.create_new_branch == '1' | ||
run: | | ||
date_str=$(date "+%Y%m%d-%H%M%S") | ||
echo "NEW_BRANCH=${{env.branchPrefix}}${{github.event.inputs.package_version_number}}-${date_str}" >> $GITHUB_ENV | ||
echo "NEW_BRANCH=new_branch-${date_str}" >> $GITHUB_ENV | ||
|
||
- name: Create new branch | ||
if: github.event.inputs.working_branch == 'None' | ||
if: github.event.inputs.working_branch == '' && github.event.inputs.create_new_branch == '1' | ||
run: | | ||
git remote update | ||
git checkout -b "${NEW_BRANCH}" | ||
echo "UPDATE_LOGFILE=update_log.txt" >> $GITHUB_ENV | ||
|
||
- name: Checkout working branch | ||
if: github.event.inputs.working_branch != 'None' | ||
if: github.event.inputs.working_branch != '' | ||
run: | | ||
git remote update | ||
git checkout ${{ github.event.inputs.working_branch }} | ||
|
@@ -80,21 +108,21 @@ jobs: | |
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: 'sdk_build.yml' | ||
run_id: ${{ github.event.inputs.downloadPreviousRun }} | ||
run_id: ${{ github.event.inputs.download_desktop_run }} | ||
path: built_artifect | ||
|
||
- name: Fetch iOS Artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: 'ios.yml' | ||
run_id: ${{ github.event.inputs.downloadPreviousRun }} | ||
run_id: ${{ github.event.inputs.download_ios_run }} | ||
path: built_artifect | ||
|
||
- name: Fetch Android Artifacts | ||
uses: dawidd6/action-download-artifact@v2 | ||
with: | ||
workflow: 'android.yml' | ||
run_id: ${{ github.event.inputs.downloadPreviousRun }} | ||
run_id: ${{ github.event.inputs.download_android_run }} | ||
path: built_artifect | ||
|
||
- name: move zip files | ||
|
@@ -129,7 +157,7 @@ jobs: | |
fi | ||
|
||
- name: Create PR if there is None | ||
if: github.event.inputs.working_branch == 'None' | ||
if: github.event.inputs.working_branch == '' && github.event.inputs.create_new_branch == '1' | ||
id: push-branch | ||
run: | | ||
if ! git update-index --refresh; then | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The other separate was intentional (different spellings, with the a one being the correct one)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done, was confused a lot, now totally make sense...