summaryrefslogtreecommitdiff
path: root/.ci/scripts
diff options
context:
space:
mode:
Diffstat (limited to '.ci/scripts')
-rwxr-xr-x.ci/scripts/clang/docker.sh3
-rw-r--r--.ci/scripts/clang/exec.sh3
-rwxr-xr-x.ci/scripts/clang/upload.sh3
-rw-r--r--.ci/scripts/common/post-upload.sh7
-rw-r--r--.ci/scripts/common/pre-upload.sh3
-rw-r--r--.ci/scripts/format/docker.sh3
-rw-r--r--.ci/scripts/format/exec.sh3
-rw-r--r--.ci/scripts/format/script.sh3
-rwxr-xr-x.ci/scripts/linux/docker.sh3
-rw-r--r--.ci/scripts/linux/exec.sh3
-rwxr-xr-x.ci/scripts/linux/upload.sh3
-rw-r--r--.ci/scripts/merge/apply-patches-by-label-private.py3
-rw-r--r--.ci/scripts/merge/apply-patches-by-label.py3
-rw-r--r--.ci/scripts/merge/check-label-presence.py3
-rw-r--r--.ci/scripts/merge/yuzubot-git-config.sh3
-rwxr-xr-x.ci/scripts/transifex/docker.sh3
-rwxr-xr-x.ci/scripts/windows/docker.sh3
-rw-r--r--.ci/scripts/windows/exec.sh3
-rw-r--r--.ci/scripts/windows/scan_dll.py3
-rw-r--r--.ci/scripts/windows/upload.ps15
-rwxr-xr-x.ci/scripts/windows/upload.sh3
21 files changed, 66 insertions, 3 deletions
diff --git a/.ci/scripts/clang/docker.sh b/.ci/scripts/clang/docker.sh
index db736f72b..792ef4aa8 100755
--- a/.ci/scripts/clang/docker.sh
+++ b/.ci/scripts/clang/docker.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3# Exit on error, rather than continuing with the rest of the script. 6# Exit on error, rather than continuing with the rest of the script.
4set -e 7set -e
5 8
diff --git a/.ci/scripts/clang/exec.sh b/.ci/scripts/clang/exec.sh
index a213aac27..664fce5f8 100644
--- a/.ci/scripts/clang/exec.sh
+++ b/.ci/scripts/clang/exec.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3mkdir -p "ccache" || true 6mkdir -p "ccache" || true
4chmod a+x ./.ci/scripts/clang/docker.sh 7chmod a+x ./.ci/scripts/clang/docker.sh
5# the UID for the container yuzu user is 1027 8# the UID for the container yuzu user is 1027
diff --git a/.ci/scripts/clang/upload.sh b/.ci/scripts/clang/upload.sh
index fe4e6b2ac..0b4b3e330 100755
--- a/.ci/scripts/clang/upload.sh
+++ b/.ci/scripts/clang/upload.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3. .ci/scripts/common/pre-upload.sh 6. .ci/scripts/common/pre-upload.sh
4 7
5REV_NAME="yuzu-linux-${GITDATE}-${GITREV}" 8REV_NAME="yuzu-linux-${GITDATE}-${GITREV}"
diff --git a/.ci/scripts/common/post-upload.sh b/.ci/scripts/common/post-upload.sh
index a4e3070fd..7f910b2b3 100644
--- a/.ci/scripts/common/post-upload.sh
+++ b/.ci/scripts/common/post-upload.sh
@@ -1,11 +1,14 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3# Copy documentation 6# Copy documentation
4cp license.txt "$DIR_NAME" 7cp LICENSE.txt "$DIR_NAME"
5cp README.md "$DIR_NAME" 8cp README.md "$DIR_NAME"
6 9
7if [[ -z "${NO_SOURCE_PACK}" ]]; then 10if [[ -z "${NO_SOURCE_PACK}" ]]; then
8 tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md license.txt 11 tar -cJvf "${REV_NAME}-source.tar.xz" src externals CMakeLists.txt README.md LICENSE.txt
9 cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME" 12 cp -v "${REV_NAME}-source.tar.xz" "$DIR_NAME"
10fi 13fi
11 14
diff --git a/.ci/scripts/common/pre-upload.sh b/.ci/scripts/common/pre-upload.sh
index a49e3fff3..705362a3c 100644
--- a/.ci/scripts/common/pre-upload.sh
+++ b/.ci/scripts/common/pre-upload.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`" 6GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
4GITREV="`git show -s --format='%h'`" 7GITREV="`git show -s --format='%h'`"
5ARTIFACTS_DIR="artifacts" 8ARTIFACTS_DIR="artifacts"
diff --git a/.ci/scripts/format/docker.sh b/.ci/scripts/format/docker.sh
index 778411e4a..a0f7a61cc 100644
--- a/.ci/scripts/format/docker.sh
+++ b/.ci/scripts/format/docker.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3# Run clang-format 6# Run clang-format
4cd /yuzu 7cd /yuzu
5chmod a+x ./.ci/scripts/format/script.sh 8chmod a+x ./.ci/scripts/format/script.sh
diff --git a/.ci/scripts/format/exec.sh b/.ci/scripts/format/exec.sh
index c50e90d66..40ab41abd 100644
--- a/.ci/scripts/format/exec.sh
+++ b/.ci/scripts/format/exec.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3chmod a+x ./.ci/scripts/format/docker.sh 6chmod a+x ./.ci/scripts/format/docker.sh
4# the UID for the container yuzu user is 1027 7# the UID for the container yuzu user is 1027
5sudo chown -R 1027 ./ 8sudo chown -R 1027 ./
diff --git a/.ci/scripts/format/script.sh b/.ci/scripts/format/script.sh
index c2550c966..119abae6a 100644
--- a/.ci/scripts/format/script.sh
+++ b/.ci/scripts/format/script.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \ 6if grep -nrI '\s$' src *.yml *.txt *.md Doxyfile .gitignore .gitmodules .ci* dist/*.desktop \
4 dist/*.svg dist/*.xml; then 7 dist/*.svg dist/*.xml; then
5 echo Trailing whitespace found, aborting 8 echo Trailing whitespace found, aborting
diff --git a/.ci/scripts/linux/docker.sh b/.ci/scripts/linux/docker.sh
index 436155b3d..dc7446dd1 100755
--- a/.ci/scripts/linux/docker.sh
+++ b/.ci/scripts/linux/docker.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3# Exit on error, rather than continuing with the rest of the script. 6# Exit on error, rather than continuing with the rest of the script.
4set -e 7set -e
5 8
diff --git a/.ci/scripts/linux/exec.sh b/.ci/scripts/linux/exec.sh
index 78e8aeabf..fa3d78cc2 100644
--- a/.ci/scripts/linux/exec.sh
+++ b/.ci/scripts/linux/exec.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3mkdir -p "ccache" || true 6mkdir -p "ccache" || true
4chmod a+x ./.ci/scripts/linux/docker.sh 7chmod a+x ./.ci/scripts/linux/docker.sh
5# the UID for the container yuzu user is 1027 8# the UID for the container yuzu user is 1027
diff --git a/.ci/scripts/linux/upload.sh b/.ci/scripts/linux/upload.sh
index 3f2c2f208..8173c5728 100755
--- a/.ci/scripts/linux/upload.sh
+++ b/.ci/scripts/linux/upload.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3. .ci/scripts/common/pre-upload.sh 6. .ci/scripts/common/pre-upload.sh
4 7
5APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage" 8APPIMAGE_NAME="yuzu-${GITDATE}-${GITREV}.AppImage"
diff --git a/.ci/scripts/merge/apply-patches-by-label-private.py b/.ci/scripts/merge/apply-patches-by-label-private.py
index 16b45043e..c640c4c4d 100644
--- a/.ci/scripts/merge/apply-patches-by-label-private.py
+++ b/.ci/scripts/merge/apply-patches-by-label-private.py
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1# Download all pull requests as patches that match a specific label 4# Download all pull requests as patches that match a specific label
2# Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to> 5# Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to>
3 6
diff --git a/.ci/scripts/merge/apply-patches-by-label.py b/.ci/scripts/merge/apply-patches-by-label.py
index c288a70a1..8ddc8ff34 100644
--- a/.ci/scripts/merge/apply-patches-by-label.py
+++ b/.ci/scripts/merge/apply-patches-by-label.py
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1# Download all pull requests as patches that match a specific label 4# Download all pull requests as patches that match a specific label
2# Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to> 5# Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to>
3 6
diff --git a/.ci/scripts/merge/check-label-presence.py b/.ci/scripts/merge/check-label-presence.py
index 048466d7e..51cf68129 100644
--- a/.ci/scripts/merge/check-label-presence.py
+++ b/.ci/scripts/merge/check-label-presence.py
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1# Checks to see if the specified pull request # has the specified tag 4# Checks to see if the specified pull request # has the specified tag
2# Usage: python check-label-presence.py <Pull Request ID> <Name of Label> 5# Usage: python check-label-presence.py <Pull Request ID> <Name of Label>
3 6
diff --git a/.ci/scripts/merge/yuzubot-git-config.sh b/.ci/scripts/merge/yuzubot-git-config.sh
index d9d595bbc..d7f1f29db 100644
--- a/.ci/scripts/merge/yuzubot-git-config.sh
+++ b/.ci/scripts/merge/yuzubot-git-config.sh
@@ -1,2 +1,5 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1git config --global user.email "yuzu@yuzu-emu.org" 4git config --global user.email "yuzu@yuzu-emu.org"
2git config --global user.name "yuzubot" \ No newline at end of file 5git config --global user.name "yuzubot" \ No newline at end of file
diff --git a/.ci/scripts/transifex/docker.sh b/.ci/scripts/transifex/docker.sh
index 05e1a98f5..6237b3f73 100755
--- a/.ci/scripts/transifex/docker.sh
+++ b/.ci/scripts/transifex/docker.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -e 1#!/bin/bash -e
2 2
3# SPDX-FileCopyrightText: 2021 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3# Setup RC file for tx 6# Setup RC file for tx
4cat << EOF > ~/.transifexrc 7cat << EOF > ~/.transifexrc
5[https://www.transifex.com] 8[https://www.transifex.com]
diff --git a/.ci/scripts/windows/docker.sh b/.ci/scripts/windows/docker.sh
index 9f34530d6..790ba8218 100755
--- a/.ci/scripts/windows/docker.sh
+++ b/.ci/scripts/windows/docker.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3set -e 6set -e
4 7
5#cd /yuzu 8#cd /yuzu
diff --git a/.ci/scripts/windows/exec.sh b/.ci/scripts/windows/exec.sh
index bf5c5fb63..ca74eeba5 100644
--- a/.ci/scripts/windows/exec.sh
+++ b/.ci/scripts/windows/exec.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3mkdir -p "ccache" || true 6mkdir -p "ccache" || true
4chmod a+x ./.ci/scripts/windows/docker.sh 7chmod a+x ./.ci/scripts/windows/docker.sh
5# the UID for the container yuzu user is 1027 8# the UID for the container yuzu user is 1027
diff --git a/.ci/scripts/windows/scan_dll.py b/.ci/scripts/windows/scan_dll.py
index 163183f2e..f374e0d78 100644
--- a/.ci/scripts/windows/scan_dll.py
+++ b/.ci/scripts/windows/scan_dll.py
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1import pefile 4import pefile
2import sys 5import sys
3import re 6import re
diff --git a/.ci/scripts/windows/upload.ps1 b/.ci/scripts/windows/upload.ps1
index ac2a38f1d..3da242bc7 100644
--- a/.ci/scripts/windows/upload.ps1
+++ b/.ci/scripts/windows/upload.ps1
@@ -1,3 +1,6 @@
1# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
2# SPDX-License-Identifier: GPL-2.0-or-later
3
1param($BUILD_NAME) 4param($BUILD_NAME)
2 5
3$GITDATE = $(git show -s --date=short --format='%ad') -replace "-", "" 6$GITDATE = $(git show -s --date=short --format='%ad') -replace "-", ""
@@ -40,7 +43,7 @@ mkdir $MSVC_SOURCE
40mkdir "artifacts" 43mkdir "artifacts"
41 44
42# Build a tar.xz for the source of the release 45# Build a tar.xz for the source of the release
43Copy-Item .\license.txt -Destination $MSVC_SOURCE 46Copy-Item .\LICENSE.txt -Destination $MSVC_SOURCE
44Copy-Item .\README.md -Destination $MSVC_SOURCE 47Copy-Item .\README.md -Destination $MSVC_SOURCE
45Copy-Item .\CMakeLists.txt -Destination $MSVC_SOURCE 48Copy-Item .\CMakeLists.txt -Destination $MSVC_SOURCE
46Copy-Item .\src -Recurse -Destination $MSVC_SOURCE 49Copy-Item .\src -Recurse -Destination $MSVC_SOURCE
diff --git a/.ci/scripts/windows/upload.sh b/.ci/scripts/windows/upload.sh
index 3c6a74218..4aa5be544 100755
--- a/.ci/scripts/windows/upload.sh
+++ b/.ci/scripts/windows/upload.sh
@@ -1,5 +1,8 @@
1#!/bin/bash -ex 1#!/bin/bash -ex
2 2
3# SPDX-FileCopyrightText: 2019 yuzu Emulator Project
4# SPDX-License-Identifier: GPL-2.0-or-later
5
3. .ci/scripts/common/pre-upload.sh 6. .ci/scripts/common/pre-upload.sh
4 7
5REV_NAME="yuzu-windows-mingw-${GITDATE}-${GITREV}" 8REV_NAME="yuzu-windows-mingw-${GITDATE}-${GITREV}"