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

Add the CompileListener from game-ci to create github annotations of errors and warnings #561

Closed
wants to merge 3 commits into from

Conversation

mikeage
Copy link
Member

@mikeage mikeage commented Nov 21, 2023

No description provided.

@mikeage mikeage added the infrastructure Build or tooling infrastructure label Nov 21, 2023
@mikeage mikeage self-assigned this Nov 21, 2023
@mikeage mikeage marked this pull request as draft November 21, 2023 12:24
mikeage and others added 3 commits November 21, 2023 14:30
Note that originally, this PR attempted to use variables, not secrets,
for the fallback license. The documentation implies that these should be
available, but in fact, they're not. See, for example,
https://github.com/orgs/community/discussions/44322

Given an .ulf file, it can be converted to the format here using:

cat foo.ulf | sed -e 's/"/\\"/g' -e ':a;N;$!ba;s/\n/\\n/g'

On a Mac, use gsed instead of sed

==== OLD COMMIT MESSAGE ====
Get personal license from Github vars

Action v4 requires always passing the username and password. We'll get this from a Github var instead of embedding it

To set these variables, follow the instructions at https://game.ci/docs/github/activation/#personal-license
to set up Unity Hub.

Then, save the following environment variables at
https://github.com/icosa-foundation/open-brush/settings/variables/actions:

FALLBACK_UNITY_EMAIL
FALLBACK_UNITY_PASSWORD
FALLBACK_UNITY_LICENSE

Note that for the license, you need to do two search and replaces first:

1. s/"/\\"/g  # Replace all instances of " with \"
2. s/\r/\\n/g  # Replace all newlines with a string of \n

After this commit, PRs from forks will build successfully using the
FALLBACK_* credentials.

Users who wish to build on their fork, using the "[CI BUILD]" option,
will need to set these environment variables at their
settings/variables/actions link. The ones from Icosa will only be used
when building as part of a PR, not as part of a local commit.
==== END OLD COMMIT MESSAGE ====

==== ORIGINAL CHANGE ====
+  UNITY_EMAIL: ${{ fromJSON(format('["{0}", "{1}"]', vars.FALLBACK_UNITY_EMAIL, secrets.UNITY_EMAIL))[secrets.UNITY_SERIAL != null] }}
+  UNITY_PASSWORD: ${{ fromJSON(format('["{0}", "{1}"]', vars.FALLBACK_UNITY_PASSWORD, secrets.UNITY_PASSWORD))[secrets.UNITY_SERIAL != null] }}
+  UNITY_LICENSE: ${{ fromJSON(format('["{0}", null]', vars.FALLBACK_UNITY_LICENSE))[secrets.UNITY_SERIAL != null] }}
==== END ORIGINAL CHANGE ====
@mikeage
Copy link
Member Author

mikeage commented Nov 21, 2023

This creates notes on the Summary section, but not on the review, doesn't link to the actual source, and seems to report those same errors that aren't actually blocking anything. In short, I don't think we want this. Closing for now.

@mikeage mikeage closed this Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infrastructure Build or tooling infrastructure
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants