Commit Graph

252 Commits

Author SHA1 Message Date
liushuyu dd009ddf84 CI: fix caching 2022-07-04 21:21:56 -06:00
liushuyu 8d9b644bdc CI: use Ninja to build stuff faster 2022-07-04 21:21:56 -06:00
liushuyu 9f5e8c4869 CI: Use GitHub Actions to check pull requests 2022-07-04 21:21:56 -06:00
lat9nq 607fe38581 ci/windows: Build using Clang
Uses the MinGWClangCross toolchain script to build yuzu. Disables our
bundled SDL2 to use the system ones that have been modified to not use
`-mwindows`. Also set's `-e` to stop the script on an error (as opposed
to packaging nothing).

Uses LLVM's linker for linking yuzu. Adds -femulated-tls due to a
libstdc++ incompatibility between GCC and Clang in vulkan_common.
2022-06-16 23:57:39 -04:00
lat9nq 9dd5e3e9da ci/windows: Split up cmake command
Improves readability.
2022-06-16 23:57:39 -04:00
Morph d77f51a9f9 ci: Update build generator to VS 2022 2022-04-24 23:36:59 -04:00
Morph a4a2c995ee ci: Update vmImage to windows-2022
The windows-2022 image contains Visual Studio 2022.
2022-04-24 23:36:59 -04:00
ameerj 0e104bd098 build-msvc: Disable tests 2022-03-19 02:35:09 -04:00
liushuyu f722e83537 video_core/codecs: (re-spin) refactor ffmpeg searching and handling 2021-12-15 20:57:01 -07:00
bunnei 15a4248f46 Revert "video_core/codecs: refactor ffmpeg searching and handling in cmake" 2021-12-15 00:02:53 -08:00
liushuyu 538db2d872 CI: fix CI on Linux 2021-12-13 22:31:19 -07:00
liushuyu ca89f4fa2f CI: fix MinGW installation step 2021-12-13 17:48:05 -07:00
Morph 523cca810a ci: Don't fetch submodules when fetching PRs 2021-11-16 22:26:54 -05:00
Morph 59f608a022 ci: Print traceback on patch merge failure 2021-11-08 13:36:05 -05:00
FearlessTobi 7a1eb7d801 .ci/transifex: Mark docker.sh as executable 2021-10-16 00:59:18 +02:00
FearlessTobi 741f25c1e6 .ci: Use Github Actions to update translation source files 2021-10-15 15:12:14 +02:00
ameerj 3cb7acfc3f ci: Use ubuntu-latest vmImage where applicable
Not specifying the vmImage defaults to ubuntu-16.04, which will be deprecated soon and is experiencing brownouts.
2021-10-11 16:57:41 -04:00
ameerj 3144238b0c ci: Use latest ubuntu image for mainline/patreon step 1 2021-10-01 19:20:28 -04:00
ameerj 6b71ba79c1 ci: Update clang format version 2021-09-24 15:52:05 -04:00
Ameer J 3931f05bf1 Merge pull request #6565 from lat9nq/bundle-ffmpeg
cmake, ci: Build bundled FFmpeg with yuzu
2021-08-01 01:34:10 -04:00
bunnei 0683896985 ci: Increase mainline build timeout.
- We're currently timing out with builds exceeding 60M. This doubles the timeout to 120M.
2021-07-21 13:03:20 -07:00
lat9nq 96eac5bf56 cmake, ci: Build bundled FFmpeg with yuzu
Drops usage of CMAKE_DEPENDENT_OPTION to allow using
YUZU_USE_BUNDLED_FFMPEG as an option on any platform. CI then now builds
FFmpeg always, netting about 10 MB less used on the AppImage.

Also somewhat fixes YUZU_USE_BUNDLED_QT so that it can be used even if
CMake doesn't clean up its state after running the first find_package.
2021-07-06 12:28:22 -04:00
lat9nq 134a14ed4f ci: windows: Copy the styles directory when packaging
Qt can make use of qwindowsvistastyle.dll if present, and our MinGW
container has the library, but it was not being copied during the
packaging process. Thus, yuzu looked like a Windows 98 application when
using the PR-verify artifacts.

This copies over the DLL during packaging, for that sweet-sweet Windows
Vista style.

In addition, set the Qt plugins path instead of the plugins/platforms
path. This way we can use the directory directly, rather than appending
a `..` everytime we need something just outside of it.
2021-06-19 05:24:56 -04:00
lat9nq bffabb7744 ci: windows: Compress using xz
Use XZ instead of gzip for packing. Should save about 10 MB.
2021-06-09 18:54:23 -04:00
lat9nq f8122f934d 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.
2021-06-09 17:16:29 -04:00
lat9nq a075dc1304 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.
2021-05-31 13:57:06 -04:00
bunnei bd654a9084 ci: build-msvc: Remove CMake install step.
- This is breaking our build pipelines with Zydis (dynarmic dependency).
2021-05-29 22:49:02 -07:00
lat9nq ee04cbbb13 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.
2021-05-16 05:07:49 -04:00
lat9nq 8f7aebd907 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.
2021-04-18 02:32:58 -04:00
bunnei cf6b66f5da 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.
2021-04-15 23:12:23 -07:00
Morph b4263319af ci: Fix MSVC build with CMake 3.20.0 2021-04-04 07:49:21 -04:00
lat9nq 05a2295e2e 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.
2021-02-22 01:40:44 -05:00
lat9nq 14ec1dddac ci/windows: Copy downloaded FFmpeg libraries
Copies FFmpeg libraries that were downloaded during the CMake
configuration. Fixes dynamic linking issues with the MinGW builds.
2021-02-05 14:49:57 -05:00
lat9nq 5b22da628d 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.
2021-01-06 13:23:56 -05:00
bunnei 6625fcd922 Merge pull request #5250 from lat9nq/appimage
ci/linux: Build an AppImage
2021-01-05 21:34:08 -08:00
lat9nq b373778199 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.
2020-12-30 16:05:15 -05:00
FearlessTobi dc2883eac5 .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.
2020-12-28 15:54:02 +01:00
lat9nq 7459d47cb6 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.
2020-12-08 15:06:02 -05:00
lat9nq 400c97825e 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.
2020-11-30 13:25:46 -05:00
liushuyu bf23f7a2fa CI: move refreshenv to the configure step...
... so that cmake can find the Vulkan SDK binaries
2020-11-22 16:19:34 -07:00
liushuyu 7ea5a46e84 ci: install Vulkan SDK in MSVC build 2020-11-20 23:01:59 -07:00
bunnei 7be78563f3 Update yuzu-patreon-step2.yml to set build timeout to 120 min
This is currently necessary to build ffmpeg
2020-09-29 22:17:50 -07:00
Lioncash 78ddcbe3ba General: Tidy up clang-format warnings part 2 2020-08-13 14:19:08 -04:00
Lioncash 14874f0b67 General: Tidy up clang-format warnings 2020-08-08 20:08:44 -04:00
Lioncash ebfc3dfc52 ci: Make use of clang-format 10.0
10.0 seems to play nicer with C++ attributes compared to clang-format
6.0.
2020-08-02 20:55:54 -04:00
FearlessTobi 0dec785dc4 yuzu: Port translation support from Citra
Co-Authored-By: Weiyi Wang <wwylele@gmail.com>
2020-07-18 14:09:11 +02:00
James Rowe bdf7222d2b CI: Don't check clang format on early access builds 2020-05-08 18:49:33 -06:00
James Rowe 2991e7441a Replace externals with Conan (#3735)
* 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
2020-05-08 17:09:29 -04:00
lat9nq 6a4fd89f4c 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.
2020-05-03 01:20:33 -04:00
gxcreator a9c6146a12 Fixed packaging on some systems with different QT5 path 2020-04-23 21:45:07 +03:00
Zach Hilman a0bdd2f2ac ci: Update to Windows Server 2019 and Visual Studio 2019
This updates to the latest available toolchain for MSVC builds.
2020-04-04 16:13:57 -04:00
ReinUsesLisp 609bfb7f69 ci: Disable Vulkan for Windows MinGW builds 2020-01-29 19:44:00 -03:00
ReinUsesLisp 9465d85ef1 ci: Disable Vulkan for Linux builds 2020-01-29 18:06:16 -03:00
James Rowe 0f6cf32d53 Add missing CMakeLists.txt from root folder to source upload
Fixes #3190
2019-12-03 15:35:28 -07:00
Zach Hilman b748d2b50d ci: Continue pipeline on clang format failure 2019-11-24 21:31:37 -05:00
James Rowe 1d2acb8a2c Move source in windows uploads into its own internal zip
This should prevent path length issues when extracting the build from the installer
2019-11-12 15:32:16 -07:00
Zach Hilman c32358b8aa ci: Package source with builds 2019-11-11 22:32:22 -05:00
bunnei 5fc5237616 ci: Rename build folder only on non-mainline builds 2019-11-06 23:26:29 -05:00
bunnei 55eefbfb07 Revert "ci: Rename build folder only on non-mainline builds" 2019-11-06 21:36:50 -05:00
bunnei 7fe2ca7e1d Merge pull request #3073 from DarkLordZach/azure-rename-partial
ci: Rename build folder only on non-mainline builds
2019-11-05 21:10:44 -05:00
Zach Hilman 7713eb71f1 ci: Rename build folder only on non-mainline builds 2019-11-05 21:07:30 -05:00
Lioncash 3d1b56d02e 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.
2019-10-29 16:58:23 -04:00
James Rowe ff705cc851 Revert "ci: Add build name to archive root folder"
This reverts commit 9e3720dca9.
2019-10-24 12:46:15 -06:00
Zach Hilman 9e3720dca9 ci: Add build name to archive root folder 2019-10-23 15:23:43 -04:00
bunnei c55d87971e Merge pull request #2961 from DarkLordZach/azure-tag-names
ci: Correct azure tag and release names
2019-10-08 20:16:28 -04:00
Zach Hilman e6c65c1a79 ci: Isolate upload merge step into stage 2 2019-10-08 19:52:02 -04:00
Zach Hilman 81bbe698a3 ci: Update build suffix for mock builds 2019-10-08 19:51:24 -04:00
Zach Hilman b686e521eb ci: Add TAR-XZ compression to MSVC builds 2019-10-06 20:44:30 -04:00
Zach Hilman 23f9b9f578 ci: Add version counter variable 2019-10-05 00:09:11 -04:00
Lioncash ee8483cf04 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.
2019-10-04 05:01:57 -04:00
bunnei 8f8c6cd38d Merge pull request #2937 from DarkLordZach/azure-msvc
ci: Add windows MSVC builds to patreon and mainline pipelines
2019-10-02 19:28:03 -04:00
Zach Hilman 41826fac4f ci: Correct mainline release dependency 2019-10-02 18:54:05 -04:00
Zach Hilman 2d2b2d45d9 ci: Add Mainline tagline 2019-10-02 18:51:21 -04:00
Zach Hilman 6e2242d5ac ci: Use MSVC windows for patreon 2019-10-02 18:23:09 -04:00
Zach Hilman e89b29b7e1 ci: Use MSVC windows for mainline 2019-10-02 17:58:52 -04:00
Zach Hilman caa495a644 ci: Add MSVC build template 2019-10-02 17:58:33 -04:00
Zach Hilman 93f1734f55 ci: Add Windows MSVC package script 2019-10-02 17:53:53 -04:00
Zach Hilman 65e2798563 ci: Fix unset environment variable bug 2019-10-02 17:53:37 -04:00
Zach Hilman 33d3c95341 ci: Check additional pages on GitHub 2019-10-01 21:54:26 -04:00
Zach Hilman 13fe4d1095 ci: Iterate through GitHub pages for pull requests 2019-10-01 21:38:09 -04:00
Zach Hilman 2637831847 ci: Correct arguments for mergebot script 2019-09-30 13:43:34 -04:00
Zach Hilman 80f965856f ci: Populate patreon PRs on public repository 2019-09-30 09:29:28 -04:00
Zach Hilman 43b52e5d37 ci: Add two step patreon build pipeline 2019-09-26 09:42:22 -04:00
Zach Hilman 778ad7c238 ci: Add private mergebot CI templates 2019-09-26 09:29:33 -04:00
Zach Hilman 5eea1cb1a5 ci: Optionally prepend commit messages with environment variable 2019-09-26 09:29:15 -04:00
Zach Hilman 25d91797fc ci: Add private mergebot script
Uses Azure instead of GitHub
2019-09-26 09:28:59 -04:00
Zach Hilman 529d106d38 ci: Correct GitHub Release name 2019-09-22 19:06:48 -04:00
Zach Hilman 4567300484 ci: Determine build date via bash 2019-09-22 18:39:29 -04:00
Zach Hilman 86422c69ae ci: Update to use date as build number 2019-09-22 17:23:47 -04:00
Zach Hilman 1169676104 ci: Split mainline pipeline and add support for GitHub releases (#2900)
* 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
2019-09-22 20:01:29 +00:00
Flame Sage f1c3ad016a Changed apt-get upgrade for specific package. 2019-09-04 00:15:51 -04:00
Flame Sage 3cf907c1d7 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.
2019-09-04 03:49:55 +00:00
Zach Hilman bedc593c77 Correct apt permissions 2019-08-01 21:33:53 -04:00
Zach Hilman a1735134e8 Upgrade PIP version with APT 2019-08-01 21:29:27 -04:00
Zach Hilman 60815560b5 Upgrade pip version 2019-08-01 21:23:17 -04:00
Zach Hilman 0511d10e4f Add missing dot 2019-08-01 21:09:11 -04:00
Zach Hilman ccc6c732fe ci: Fix Azure PR Builds 2019-07-28 14:21:18 -04:00
Zach Hilman 19b1d82fe4 Fix README change mistake (#2754)
Fix README change mistake
2019-07-24 16:42:33 -04:00
Zach Hilman ca7db6fde8 azure: Fix clang-format and releases 2019-07-20 15:19:25 -04:00
Zach Hilman 6ddb4a1c1f Finalize Azure Pipelines Definitions
d
2019-07-13 21:34:40 -04:00
Zach Hilman 3c377f9b82 Add Repository Sync Pipeline 2019-07-10 22:18:32 -04:00
Zach Hilman e5c60e7b08 Add Pipeline Definitions 2019-07-09 22:17:56 -04:00