mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-24 20:36:24 -05:00
CI Changes to Alow Building Linux and Android [From FORK]
This commit is contained in:
parent
3037f0b869
commit
e29c55dd98
4 changed files with 28 additions and 12 deletions
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash -ex
|
||||
|
||||
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project & 2024 suyu Emulator Project
|
||||
# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
|
||||
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
# Exit on error, rather than continuing with the rest of the script.
|
||||
|
|
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -37,3 +37,5 @@ CMakeSettings.json
|
|||
# Windows global filetypes
|
||||
Thumbs.db
|
||||
|
||||
# Local Gitlab CI Runner
|
||||
.gitlab-ci-local/
|
||||
|
|
28
.gitlab-ci.yml
Normal file → Executable file
28
.gitlab-ci.yml
Normal file → Executable file
|
@ -1,27 +1,41 @@
|
|||
stages:
|
||||
- format
|
||||
- build
|
||||
|
||||
#CLANG FORMAT - CHECKS CODE FOR FORMATTING ISSUES
|
||||
clang-format:
|
||||
stage: format
|
||||
image: suyuemu/cibuild:linux-x64
|
||||
image: registry.gitlab.com/ddutchie/ci-docker:clangformat
|
||||
#TODO: SET THIS TO FALSE!!!
|
||||
allow_failure: true
|
||||
variables:
|
||||
RELEASE_NAME: mainline
|
||||
script:
|
||||
- git submodule update --init --depth 1 --recursive
|
||||
- bash .ci/scripts/format/script.sh
|
||||
|
||||
#LINUX BUILD - BUILDS LINUX APPIMAGE
|
||||
build-linux:
|
||||
stage: build
|
||||
image: suyuemu/cibuild:linux-x64
|
||||
image: registry.gitlab.com/ddutchie/ci-docker:linux-x64
|
||||
resource_group: linux-ci
|
||||
variables:
|
||||
GIT_SUBMODULE_STRATEGY: recursive
|
||||
GIT_SUBMODULE_DEPTH: 1
|
||||
RELEASE_NAME: mainline
|
||||
script:
|
||||
- git submodule update --init --depth 1 --recursive
|
||||
- bash .ci/scripts/linux/docker.sh
|
||||
- bash .ci/scripts/linux/upload.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- artifacts/*
|
||||
#ANDROID BUILD - BUILDS APK
|
||||
android:
|
||||
stage: build
|
||||
image: registry.gitlab.com/ddutchie/ci-docker:android-x64
|
||||
script:
|
||||
- apt-get update -y
|
||||
- git submodule update --init --recursive
|
||||
- export ANDROID_HOME="/usr/lib/android-sdk/"
|
||||
- echo y | sdkmanager --sdk_root=/usr/lib/android-sdk --licenses
|
||||
- bash ./.ci/scripts/android/build.sh
|
||||
- bash ./.ci/scripts/android/upload.sh
|
||||
artifacts:
|
||||
paths:
|
||||
- artifacts/*
|
||||
|
|
|
@ -217,7 +217,7 @@ bool DecoderContext::OpenContext(const Decoder& decoder) {
|
|||
|
||||
return true;
|
||||
}
|
||||
|
||||
#ifndef ANDROID
|
||||
// Nasty but allows linux builds to pass.
|
||||
// Requires double checks when FFMPEG gets updated.
|
||||
// Hopefully a future FFMPEG update will all and expose a solution in the public API.
|
||||
|
@ -376,7 +376,7 @@ static av_always_inline const FFCodec* ffcodec(const AVCodec* codec) {
|
|||
}
|
||||
|
||||
} // namespace
|
||||
|
||||
#endif
|
||||
bool DecoderContext::SendPacket(const Packet& packet) {
|
||||
m_temp_frame = std::make_shared<Frame>();
|
||||
m_got_frame = 0;
|
||||
|
|
Loading…
Reference in a new issue