Commit Graph

46854 Commits (2a031fa11cb5a5abca41d9eef5fdfb0b7bb54301)

Author SHA1 Message Date
Nat Goodspeed 2a031fa11c SL-19242: Ensure NSIS file paths don't end with backslash.
If they do, NSIS takes it as line continuation.
2023-09-13 21:17:34 -04:00
Nat Goodspeed 2670cde77b SL-19242: On NSIS error, dump the generated .nsi file. 2023-09-13 20:12:43 -04:00
Nat Goodspeed 6c6f6f4023 SL-19242: Pass arbitrary subprocess kwds through run_command().
That is, make LLManifest.run_command() accept and forward subprocess keyword
arguments.
2023-09-13 19:29:45 -04:00
Nat Goodspeed 62898143bf SL-19242: Write relative pathnames into NSIS input file. 2023-09-13 17:59:09 -04:00
Nat Goodspeed baa0faa7d1 SL-19242: Don't die if Windows app image installers/windows exists. 2023-09-13 15:10:22 -04:00
Nat Goodspeed b1c93e6a50 SL-19242: Add NSIS language files etc. to Windows-app artifact. 2023-09-13 13:17:38 -04:00
Nat Goodspeed be5f210e72 SL-19242: Don't exclude the prepared .nsi file from Windows-app.
Since we need to run NSIS in a separate job step, allow the Windows-app build
artifact to include the temporary .nsi file prepared by filling in our
template.

Also tweak the logic that finds and runs NSIS.
2023-09-13 11:13:55 -04:00
Nat Goodspeed b02249546e SL-19243: Directly reference action subdirs in viewer-build-util
instead of trying to checkout viewer-build-util (which doesn't work) and then
reference action subdirs from the filesystem.

Also engage (initial placeholder) actions to sign and package the
platform-specific application artifacts.
2023-09-12 16:28:09 -04:00
Nat Goodspeed 3e86f26b40 SL-19243: Try to convince GitHub that ./.util is really a path. 2023-09-12 13:55:08 -04:00
Nat Goodspeed d795b49f16 SL-19243: Job step 'uses' must specify action.yaml file
instead of having it implied by specifying the containing directory.
2023-09-12 12:50:13 -04:00
Nat Goodspeed 0992a0af3b SL-19243: Use consolidated viewer-build-util
instead of distinct viewer-post-bugsplat-{windows,mac} repos.
2023-09-12 12:46:28 -04:00
Nat Goodspeed f31326189c SL-19242: Exclude installer from Windows-app artifact. 2023-09-11 19:38:55 -04:00
Nat Goodspeed 62879b6e69 SL-19242: Adjust Windows relative path base directory. 2023-09-11 18:05:32 -04:00
Nat Goodspeed fab7b300b9 SL-19242: Re-enable the rest of the build product uploads. 2023-09-11 15:34:14 -04:00
Nat Goodspeed db2953e5de SL-19242: Have to prefix upload-artifact exclude paths with pathname. 2023-09-11 15:29:32 -04:00
Nat Goodspeed 0d0dafc1be SL-19242: Fix minor error in viewer_manifest.set_github_output(). 2023-09-11 13:33:30 -04:00
Nat Goodspeed 0107f030c8 SL-19242: Eliminate cruft from Windows app image artifact 2023-09-11 12:53:34 -04:00
Nat Goodspeed 29300a1fd3 SL-19242: Try harder to post artifacts containing exactly app image.
In a Windows build tree, we don't actually have an app-named top directory, so
don't package its containing directory -- just the app dir itself, e.g.
"newview/Release".

In a Mac build tree, though we do have "Second Life Mumble.app", its parent
directory also contains other large stuff. Try posting a temp directory
containing a symlink to the .app.

Ditch the "!*.bat" exclusion: the presence of a second path (even an
exclusion) changes how upload-artifact nests its contents.
2023-09-11 10:07:51 -04:00
Nat Goodspeed dc0ebc96a4 SL-19242: Try passing upload-artifact a normalized relative path. 2023-09-09 09:36:03 -04:00
Nat Goodspeed ee82cd046f SL-19242: Resolve '..' in viwer_app path before trying to upload. 2023-09-08 19:25:47 -04:00
Nat Goodspeed 63d5d38e36 SL-18837: Stop failing build.sh if there's no installer.
This unblocks ReleaseOS builds, and also preps for SL-19242.

Streamline build.sh's Uploads section.
2023-09-08 17:24:04 -04:00
Nat Goodspeed 2d04cc14d3 SL-19242: Post -app artifact, not -exe, with entire install image.
Previously we posted Windows-exe, macOS-exe artifacts that were a little
inconsistent: Windows-exe contained just the Windows executable, whereas
macOS-exe contained the whole .app tree (but without the .app directory).

Change to post Windows-app, macOS-app artifacts that each contain the whole
viewer install image, including the top-level application name directory. This
is what we'll need to codesign and notarize.
2023-09-08 17:01:46 -04:00
Nat Goodspeed c87d9c635b SL-18837: Suppress ReleaseOS for now. 2023-09-08 14:30:05 -04:00
Nat Goodspeed c7546ea65e SL-18837: Make llsdserialize_test debug output conditional.
Move hexdump() and hexmix() stream formatters to new hexdump.h for potential
use by other tests.

In toPythonUsing() helper function, add a temp file to receive Python script
debug output, and direct debug output to that file. On test failure, dump the
contents of that file to the log.

Give NamedTempFile::peep() an optional target std::ostream; refactor
implementation as peep_via() that accepts a callable to process each text
line. Add operator<<() to stream the contents of a NamedTempFile object to
ostream -- but don't use that with LL_DEBUGS(), as it flattens the file
contents into a single log line. Instead add peep_log(), which streams each
individual text line to LL_DEBUGS().
2023-09-08 14:14:09 -04:00
Ansariel d459b3a1ca Fix builds using OpenAL
(cherry picked from commit fd73b6e5cf)
2023-09-08 12:42:21 -04:00
Nat Goodspeed 44181628d5 SL-18837: Revert "Add OpenAL::createDefaultStreamingAudioImpl()."
This reverts commit 6cb906c449.
2023-09-08 12:41:04 -04:00
Nat Goodspeed 7e655d8c82 SL-18837: Revert "Typo for LLAudioEngine_OpenAL"
This reverts commit 46bd102e80.
2023-09-08 12:40:37 -04:00
Nat Goodspeed 46bd102e80 SL-18837: Typo for LLAudioEngine_OpenAL 2023-09-08 11:00:16 -04:00
Nat Goodspeed 6cb906c449 SL-18837: Add OpenAL::createDefaultStreamingAudioImpl().
LLAudioEngine added a new abstract virtual method that wasn't yet implemented
for LLStreamingAudio_OpenAL.
2023-09-08 10:35:10 -04:00
Nat Goodspeed eb84585875 SL-18837: NamedTempFile must be binary mode on Windows. 2023-09-08 09:50:38 -04:00
Nat Goodspeed a45c9f68c3 SL-18837: Add debugging output to llsdserialize_test.cpp. 2023-09-08 08:58:32 -04:00
Nat Goodspeed 77227cf5c4 SL-18837: Suppress BUGSPLAT_DB for ReleaseOS builds. 2023-09-07 14:09:54 -04:00
Nat Goodspeed 95aa00f742 SL-18837: Fix minor merge glitch. 2023-09-07 13:40:46 -04:00
Nat Goodspeed bac73831c0 SL-18837: String literals are single-quoted in GitHub expressions. 2023-09-07 11:48:15 -04:00
Nat Goodspeed db71f834bc SL-18837: Without USE_BUGSPLAT, no target generate_symbols. 2023-09-07 11:44:53 -04:00
Nat Goodspeed 949909013e SL-18837: Segregate ReleaseOS artifacts; don't even upload.
Eliminate references to (no longer set) matrix.addrsize.
2023-09-07 11:38:00 -04:00
Nat Goodspeed b8e6777439 SL-18837: Merge branch 'main' into actions 2023-09-07 11:15:56 -04:00
Nat Goodspeed 755f9d9ac9 SL-19243: Specify macos-latest for post-mac-symbols.
We want to run on a GitHub-hosted runner rather than one of our own.
2023-09-06 17:03:22 -04:00
Nat Goodspeed 5bf2317bd8 SL-19243: Skip older Mac symbol upload
because it moves the xcarchive.zip file away from where we later want to post
it to GitHub.
2023-09-02 12:19:26 -04:00
Nat Goodspeed 2eda2eb21b SL-19242: Fix duplicated 'Second Life Mumble.app' path component
in the path passed as the macOS viewer_exe GitHub output.
2023-09-02 12:17:06 -04:00
Nat Goodspeed 3eea556c28 SL-19243: Post xcarchive.zip instead of separate symbols tarball.
On Mac, in the CMake USE_BUGSPLAT logic, we created both xcarchive.zip (which
is what BugSplat wants to see) and secondlife-symbols-darwin -64.tar.bz2 (which
we don't think is used for anything). The tarball was posted to codeticket --
but why? If the point is to manually re-upload to BugSplat in case of failure,
we'll do better saving xcarchive.zip to codeticket.

For SL-19243, posting xcarchive.zip directly supports the goal of breaking out
the upload to BugSplat as a separate step.

Anyway, since xcarchive.zip is a superset of the tarball, the tarball can be
recreated from the zip file, whereas the zip file can't be recreated from the
tarball without opening the .dmg installer and extracting the viewer executable.

If the xcarchive.zip file exists (that is, on Mac), post that to codeticket or
GitHub, as applicable, instead of the tarball. In fact, in the USE_BUGSPLAT
case, don't even bother creating the tarball since we're going to ignore it.

Make the new build.sh logic that insists on BUGSPLAT_USER and BUGSPLAT_PASS
conditional on BUGSPLAT_DB.
2023-09-02 11:02:23 -04:00
Nat Goodspeed b13c1f77c7 SL-19242: Emphasize to upload-artifact that our .app is a directory 2023-09-02 09:44:24 -04:00
Nat Goodspeed bfb059d4ff SL-19243: Try harder to list contents of xcarchive.zip.
upload-mac-symbols.sh actually moves the xcarchive.zip file to /tmp, which is
why we couldn't find it when trying to list its contents after the upload.
2023-09-01 15:28:36 -04:00
Nat Goodspeed 1f6213a584 SL-19243: Try to list contents of xcarchive.zip 2023-09-01 12:58:53 -04:00
Nat Goodspeed 00d8d4e9cd SL-19243: Upload Mac .app as another build artifact. 2023-09-01 12:16:36 -04:00
Nat Goodspeed 7cedb1eb20 SL-19243: Add post-mac-symbols job using viewer-post-bugsplat-mac.
The initial viewer-post-bugsplat-mac is just a placeholder so far, but we can
flesh it out while the viewer builds necessitated by this change are running,
and then we can iterate on viewer-post-bugsplat-mac without having to rebuild
the viewer.
2023-09-01 10:53:02 -04:00
Nat Goodspeed 2ee8cb0e16 SL-19243: Job to post windows symbols must run on Windows. 2023-09-01 07:46:32 -04:00
Nat Goodspeed c8aa205fab SL-19243: Try to robustify GH Mac volume detach
Use a retry loop very like the code-signing retry loop.
2023-08-31 22:35:49 -04:00
Nat Goodspeed 6a219d147d SL-18837: Enlarge default coroutine stack size.
A test executable on a GitHub Windows runner failed with C00000FD, which
reports stack overflow.

(cherry picked from commit aab7b4ba3812e5876b1205285bcfd8cff96bcac9)
2023-08-31 21:11:11 -04:00
Nat Goodspeed 3147b55cec SL-19243: Fix wonky 'if:' in build.yaml 2023-08-31 17:28:25 -04:00