Commit graph

50 commits

Author SHA1 Message Date
Morph
282459a5f7 ci: Actually enable LTO on MSVC (#9887) 2023-03-02 14:47:20 +01:00
Matías Locatti
7cc539e8b8 Partially apply LTO to only core and video_core projects. 2023-02-27 18:44:14 -03:00
Matías Locatti
7479b381fa Enable compiler optimizations and enforce x86-64-v2 on GCC/Clang (#9442)
* Testing LTO (#4)

* Testing LTO

* clang

* linux

* Added the rest of Blinkhawk's optimizations

* Unlikely asserts

* Removing LTO from Linux builds - GCC

* Removing LTO from Linux builds - Clang
2022-12-17 17:16:52 -08:00
lat9nq
add48360d8 ci,workflows: Enable crash dumps on MSVC builds
ci/windows: Enable crash dumps on MinGW builds
2022-09-04 21:36:34 -04:00
Morph
2c49aad9f7 ci: Enable building with Visual Studio 2022 (again)
Since the following https://developercommunity.visualstudio.com/t/Type-alias-lookup-failure-within-paramet/10039150 compiler bug has been fixed, we can finally build with VS 2022 again.
2022-08-30 14:33:26 -04:00
lat9nq
13a834ec54 cmake,ci: vcpkg for MSVC default, fix lz4 include, catch2, cleanup
vcpkg: Add Catch2 2.13.9

Catch2 >= 3.0 is not compatible with earlier versions, and for now we
must override the desired version in our vcpkg manifest. We can do this
programmatically by using VCPKG_MANIFEST_FEATURES.

CMakeLists: Search for lz4 CONFIG mode first

vcpkg's lz4 CONFIG cmake script works in Release mode but not in Debug
mode, failing to copy the correct DLLs at compile time.

We still need to search for the regular mode for system-installed
versions.

CMakeLists: Clean up boost exports

Remove some Conan-specific workarounds.

CMakeLists: Use vcpkg for MSVC by default

Not enabling it generally since it's much easier to have system
dependencies installed for Linux and MinGW.
2022-07-28 16:01:47 -04:00
bunnei
62db85c1aa Merge pull request #8349 from yuzu-emu/revert-8256-ci-vs-2022
Revert "ci: Enable building with Visual Studio 2022"
2022-07-28 12:50:07 -07:00
Andrea Pappacoda
6a2efdda2f chore: make yuzu REUSE compliant
[REUSE] is a specification that aims at making file copyright
information consistent, so that it can be both human and machine
readable. It basically requires that all files have a header containing
copyright and licensing information. When this isn't possible, like
when dealing with binary assets, generated files or embedded third-party
dependencies, it is permitted to insert copyright information in the
`.reuse/dep5` file.

Oh, and it also requires that all the licenses used in the project are
present in the `LICENSES` folder, that's why the diff is so huge.
This can be done automatically with `reuse download --all`.

The `reuse` tool also contains a handy subcommand that analyzes the
project and tells whether or not the project is (still) compliant,
`reuse lint`.

Following REUSE has a few advantages over the current approach:

- Copyright information is easy to access for users / downstream
- Files like `dist/license.md` do not need to exist anymore, as
  `.reuse/dep5` is used instead
- `reuse lint` makes it easy to ensure that copyright information of
  files like binary assets / images is always accurate and up to date

To add copyright information of files that didn't have it I looked up
who committed what and when, for each file. As yuzu contributors do not
have to sign a CLA or similar I couldn't assume that copyright ownership
was of the "yuzu Emulator Project", so I used the name and/or email of
the commit author instead.

[REUSE]: https://reuse.software

Follow-up to b2eb103829
2022-07-27 12:53:49 +02:00
bunnei
b80c65d0f7 Revert "ci: Enable building with Visual Studio 2022" 2022-07-22 17:59:12 -07:00
lat9nq
20d760ea99 ci,CMake: Integrate vcpkg into CMakeLists
Uses manifest mode if the bundled vcpkg is used.
2022-07-22 20:54:00 -04:00
Morph
d77f51a9f9 ci: Update build generator to VS 2022 2022-04-24 23:36:59 -04:00
ameerj
0e104bd098 build-msvc: Disable tests 2022-03-19 02:35:09 -04: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
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
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
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
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
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
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
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
Zach Hilman
7713eb71f1 ci: Rename build folder only on non-mainline builds 2019-11-05 21:07:30 -05: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
23f9b9f578 ci: Add version counter variable 2019-10-05 00:09:11 -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
caa495a644 ci: Add MSVC build template 2019-10-02 17:58:33 -04:00
Zach Hilman
65e2798563 ci: Fix unset environment variable bug 2019-10-02 17:53:37 -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
778ad7c238 ci: Add private mergebot CI templates 2019-09-26 09:29:33 -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