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

Misc QOL Updates and bug fixes #505

Merged
merged 17 commits into from
Feb 14, 2023
Merged

Conversation

AndrewKahr
Copy link
Member

@AndrewKahr AndrewKahr commented Feb 12, 2023

Changes

  • Add cacheUnityInstallationOnMac parameter to cache Unity Hub/Editor on MacOS runners. This can significantly reduce build times that need a macos runner
  • Add unityHubVersionOnMac parameter to pin Unity Hub version on MacOS runners
  • Support other target platforms on MacOS runners
  • Enable log output streaming to console rather than outputting the whole log in one go on MacOS runners
  • Improve build failure detection for all platforms. Builds with errors should now fail the workflow properly
  • Updated PR Template Links
  • Add androidExportType parameter to enable exporting as androidPackage (apk), androidAppBundle(aab), or androidStudioProject (Android Project)
  • Enforce minimum node version to >=16
  • Added yarn-audit-fix to dev dependencies
  • Updated vulnerable packages
  • Add deprecation warning to favor using androidExportType over buildAndroidAppBundle
  • Add androidSymbolType parameter to allow building public or debugging symbols for android
  • Change windows build script to use $LastExitCode and not $? to fix exit code not being captured correctly
  • Update Default Build Script to support the new parameters
  • Update Default Build Script to work on Unity 2018 versions by removing out variable declarations
  • Update tests to cover the latest version of each minor Unity version
  • Add retry logic to windows test builds as there seem to be more activation errors than other platforms

This should handle #411, #356, #325, PR#471, PR#443, and PR#418.

This is supported by game-ci/documentation#362

Checklist

  • Read the contribution guide and accept the code of conduct
  • Readme (updated or not needed)
  • Tests (added, updated or not needed)

@github-actions
Copy link

Cat Gif

@codecov-commenter
Copy link

codecov-commenter commented Feb 12, 2023

Codecov Report

Merging #505 (7e81af1) into main (8c9dcf0) will increase coverage by 0.43%.
The diff coverage is 66.66%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #505      +/-   ##
==========================================
+ Coverage   36.85%   37.28%   +0.43%     
==========================================
  Files          74       75       +1     
  Lines        2890     2934      +44     
  Branches      582      600      +18     
==========================================
+ Hits         1065     1094      +29     
- Misses       1688     1703      +15     
  Partials      137      137              
Impacted Files Coverage Δ
src/model/image-environment-factory.ts 7.14% <0.00%> (ø)
src/model/exec-with-error-check.ts 15.38% <15.38%> (ø)
src/model/docker.ts 11.62% <33.33%> (ø)
src/model/build-parameters.ts 92.06% <80.95%> (-5.77%) ⬇️
src/model/input.ts 92.24% <100.00%> (+1.06%) ⬆️
src/model/versioning.ts 94.06% <100.00%> (ø)

@AndrewKahr
Copy link
Member Author

Seems the way I am doing symbol generation doesn't work on older Unity versions, will make a fix

… default to public. Increase build test coverage of unity versions.
@AndrewKahr AndrewKahr marked this pull request as draft February 12, 2023 11:20
@AndrewKahr AndrewKahr marked this pull request as ready for review February 13, 2023 01:42
@AndrewKahr
Copy link
Member Author

The android failing build in 2022.2 is due to a Unity bug so that one is expected to fail

@davidmfinol
Copy link
Member

Any idea why builds for 2019.2.11f1 are showing as "Expected" and not "Successful"?

@AndrewKahr
Copy link
Member Author

I'm not sure. Either the workflow needs to be approved to run or it's because I updated the PR workflow to run more Unity versions and those got superseded. I'm guessing the latter though.

@AndrewKahr
Copy link
Member Author

@davidmfinol It might be this: https://github.com/orgs/community/discussions/26698

Are you able to look at branch protection rules?

@davidmfinol
Copy link
Member

@AndrewKahr Yep that was it.

@davidmfinol davidmfinol merged commit 0efa185 into game-ci:main Feb 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants