Commit Graph

128 Commits (45b343d1d09f30193a1da52924ee83a834356fae)

Author SHA1 Message Date
lat9nq 6eeb532c96 ci: common: Remove 7z packaging
Removes the 7z from being package during CI, as only .tar.xz preserves
information needed on Linux, and otherwise is just extremely redundant
to package in addition to the .tar.xz.  This affects Linux releases and
PR-verify artifacts only. MSVC releases do not use this script to my
knowledge.
lat9nq 1914a1d21c externals: libusb: Use autotools for MinGW
After updating to 1.0.24, MinGW fails to build libusb as a result of
numerous errors. So we build libusb their way and let them update the
nontrivial stuff.

This only applies to MinGW: the old path is still in use for Linux
toolchains as well as MSVC.

This will dynamically link libusb, since I hit build errors with the old
way we used to resolve the conflict with SDL2.
bunnei f072f48806
ci: build-msvc: Remove CMake install step.
- This is breaking our build pipelines with Zydis (dynarmic dependency).
lat9nq 9ec26a805a ci: linux: Freeze AppImage binaries
A regression was introduced on May 13 by linuxdeploy that causes file
open dialogs to crash yuzu in the AppImage (likely this commit
1e28ee38fa174279defe70cdaadf2a552c80258c from
linuxdeploy/linuxdeploy-desktopfile). Instead of downloading the latest
version from each of the repos we use to build the AppImage, just
download the ones hosted at yuzu-emu/ext-linux-bin, which are the same
binaries we have been using, but verified to be working and won't update
on us beyond our control.

This can eventually be moved into the container itself to remove the
need to download them at build time.
lat9nq 7d0d2af3fa ci: linux: Link Boost statically
Only affects the AppImage and the raw binaries. Enables running the
executable alone on Linux systems when all other libraries are
compatible.
bunnei 71d4abcfd4 cmake: Remove use of bintray for externals.
- Bintray will be deprecated on May 1st 2021 (https://bintray.com/)
- We were previously using this for Qt (non-Windows) and SDL.
- I've moved to bundled SDL on Windows.
Morph 17ad323b36 ci: Fix MSVC build with CMake 3.20.0
lat9nq fb0b4c7e27 ci: Add clang build scripts
Adds scripts that instruct CI to build yuzu with the installed Clang
compiler on yuzuemu/build-environments:linux-fresh.

These scripts are based on the .ci/scripts/linux scripts, minus AppImage
building since that isn't necessary. Re-uses linux-fresh since that
container has Clang 12 installed.
lat9nq 0913aaa42a ci/windows: Copy downloaded FFmpeg libraries
Copies FFmpeg libraries that were downloaded during the CMake
configuration. Fixes dynamic linking issues with the MinGW builds.
lat9nq 0d24b1a31b ci/linux: Make Mainline AppImages updateable
Moves the final step for building the AppImage to the upload script.
Instructs appimagetool to embed update information into the AppImage if
the release target is Mainline. Also tells it to create a zsync file to
enable partial-downloads when updating the AppImage.

Also renames the AppImage from `yuzu-{version info}-x86_64.AppImage` to
`yuzu-{version info}.AppImage` to avoid a bug in the downloads page at
yuzu-emu.org/downloads.
bunnei e112d0a52f
Merge pull request from lat9nq/appimage
ci/linux: Build an AppImage
lat9nq 43cad754d5 ci: Build an AppImage
This builds yuzu in an AppImage alongside the other archives during
release. Required to allow distributing yuzu in the future with upgraded
dependencies, such as Qt.
FearlessTobi 368b3ee227 .ci/templates: Enable QT translation for MSVC CI
Previously this flag was missing, causing translation files not to be shipped with CI builds of yuzu.
lat9nq f1d633cca7 ci: Remove `-DYUZU_USE_BUNDLED_UNICORN=ON`
Unicorn has been removed, yet CI still enables building with Unicorn.
This just cleans up a few leftovers by removing the variable from the
CMake parameters in CI.
lat9nq 756225c8ff Disable web applet and warning when compiling for Linux on CI
yuzu's web applet does not or barely reacts to user input while open in
Linux. It can be closed via 'Exit Web Applet' on the menubar, however if
yuzu is in fullscreen, this is effectively a softlock as the menubar
cannot be accessed.

This disables building yuzu with the web applet on the Linux CI target.
In addition, this disables the QMessageBox warning about not having
compiled yuzu with the web applet.
liushuyu b546640c41
CI: move refreshenv to the configure step...
... so that cmake can find the Vulkan SDK binaries
liushuyu 185bf3fd28
ci: install Vulkan SDK in MSVC build
bunnei 385b5602e4
Update yuzu-patreon-step2.yml to set build timeout to 120 min
This is currently necessary to build ffmpeg
Lioncash b724a4d90c General: Tidy up clang-format warnings part 2
Lioncash 1c3490a8db General: Tidy up clang-format warnings
Lioncash 0105368cc1 ci: Make use of clang-format 10.0
10.0 seems to play nicer with C++ attributes compared to clang-format
6.0.
FearlessTobi 347b50ad43 yuzu: Port translation support from Citra
Co-Authored-By: Weiyi Wang <wwylele@gmail.com>
James Rowe dd449ce462 CI: Don't check clang format on early access builds
James Rowe bc30a591ba
Replace externals with Conan ()
* Remove git submodules that will be loaded through conan

* Move custom Find modules to their own folder

* Use conan for downloading missing external dependencies

* CI: Change the yuzu source folder user to the user that the containers run on

* Attempt to remove dirty mingw build hack

* Install conan on the msvc build

* Only set release build type when using not using multi config generator

* Re-add qt bundled to workaround an issue with conan qt not downloading prebuilt binaries

* Add workaround for submodules that use legacy CMAKE variables

* Re-add USE_BUNDLED_QT on the msvc build bot
lat9nq 9222b3c960 Re-enables building yuzu with Vulkan enabled via the CI scripts
This is possible now with the updated Docker images and their updated packages.
Before, there were build errors due to old QT5 packages on Ubuntu, but now since
they have updated packages it is feasible to build with Vulkan enabled once more.
gxcreator 8af62c9997 Fixed packaging on some systems with different QT5 path
Zach Hilman 59e75f4372 ci: Update to Windows Server 2019 and Visual Studio 2019
This updates to the latest available toolchain for MSVC builds.
ReinUsesLisp d027850f33 ci: Disable Vulkan for Windows MinGW builds
ReinUsesLisp 252415a163 ci: Disable Vulkan for Linux builds
James Rowe 2883cc1658
Add missing CMakeLists.txt from root folder to source upload
Fixes 
Zach Hilman 8652313af2 ci: Continue pipeline on clang format failure
James Rowe d24fcaff77 Move source in windows uploads into its own internal zip
This should prevent path length issues when extracting the build from the installer
Zach Hilman d4a1afba4b ci: Package source with builds
bunnei e07dfc4da3 ci: Rename build folder only on non-mainline builds
bunnei f1e4f3fc0c
Revert "ci: Rename build folder only on non-mainline builds"
bunnei 9a62f5351a
Merge pull request from DarkLordZach/azure-rename-partial
ci: Rename build folder only on non-mainline builds
Zach Hilman 65bed6682c ci: Rename build folder only on non-mainline builds
Lioncash c2486f77e4 externals: Amend zlib submodule
Supplies CMakeLists.txt file that avoids pulling in zlib's tests into
the tree. This avoids needing to explicitly opt these tests out from
ctest.
James Rowe 969f0afa4e Revert "ci: Add build name to archive root folder"
This reverts commit 5e553a6c26.
Zach Hilman 5e553a6c26 ci: Add build name to archive root folder
bunnei 464353bc57
Merge pull request from DarkLordZach/azure-tag-names
ci: Correct azure tag and release names
Zach Hilman 1817191d55 ci: Isolate upload merge step into stage 2
Zach Hilman 1ec23a0353 ci: Update build suffix for mock builds
Zach Hilman df80e89b8f ci: Add TAR-XZ compression to MSVC builds
Zach Hilman d45ad75404 ci: Add version counter variable
Lioncash 80bdb44ead externals: Use upstream zlib
We don't need to depend on a custom fork for this. We can add the
library as is, and then make it excluded from the ALL target, so we only
link in the libraries that we actually make use of.
bunnei 6bfabdedfd
Merge pull request from DarkLordZach/azure-msvc
ci: Add windows MSVC builds to patreon and mainline pipelines
Zach Hilman a86e52a375 ci: Correct mainline release dependency
Zach Hilman 53be058e74 ci: Add Mainline tagline
Zach Hilman d648cd562a ci: Use MSVC windows for patreon
Zach Hilman bfa60e2d4e ci: Use MSVC windows for mainline
Zach Hilman 514b74a098 ci: Add MSVC build template
Zach Hilman 49344111cc ci: Add Windows MSVC package script
Zach Hilman c56822a405 ci: Fix unset environment variable bug
Zach Hilman 0e58bfedfd ci: Check additional pages on GitHub
Zach Hilman 7d46416a16 ci: Iterate through GitHub pages for pull requests
Zach Hilman 4ea425d6cf ci: Correct arguments for mergebot script
Zach Hilman e6f3aad84e ci: Populate patreon PRs on public repository
Zach Hilman 867e1db287 ci: Add two step patreon build pipeline
Zach Hilman 0ba7055873 ci: Add private mergebot CI templates
Zach Hilman 3f52bb5677 ci: Optionally prepend commit messages with environment variable
Zach Hilman ab8d122384 ci: Add private mergebot script
Uses Azure instead of GitHub
Zach Hilman 921dae5e83 ci: Correct GitHub Release name
Zach Hilman 15805f4e01 ci: Determine build date via bash
Zach Hilman 851c5d67ae ci: Update to use date as build number
Zach Hilman cc3db2aa43 ci: Split mainline pipeline and add support for GitHub releases ()
* ci: Add mock build alternative for fast testing

* ci: Always cache build

* ci: Extract steps to download build stage artifacts

* ci: Add template to release to GitHub

* ci: Add template to release to Azure Universal Artifacts

* ci: Split mainline to two pipelines
Flame Sage ce3edaad26 Changed apt-get upgrade for specific package.
Flame Sage 573a1e7662
apt update before upgrade. Use apt-get.
Identified a bug in the script which uses the azure image when attempting to upgrade python3-pip.
Package index was out of date because apt-get update was not ran before attempting the upgrade.
Zach Hilman 9aef7e5e22 Correct apt permissions
Zach Hilman 6b2937bf76 Upgrade PIP version with APT
Zach Hilman a2d2a6b6dd Upgrade pip version
Zach Hilman d3ea2df06d Add missing dot
Zach Hilman bcbec6f37c ci: Fix Azure PR Builds
Zach Hilman 12514ccd35 Fix README change mistake ()
Fix README change mistake
Zach Hilman f470bcb826 azure: Fix clang-format and releases
Zach Hilman bbc5b5d62d Finalize Azure Pipelines Definitions
d
Zach Hilman 502358ab05 Add Repository Sync Pipeline
Zach Hilman f2e5c19520 Add Pipeline Definitions