This commit is contained in:
Fijxu 2024-03-22 01:57:42 -03:00
parent fbabb531a7
commit f42c6e777c
No known key found for this signature in database
GPG key ID: 32C1DDF333EDA6A4
3 changed files with 43 additions and 32 deletions

View file

@ -1,33 +1,36 @@
# SPDX-FileCopyrightText: 2021 yuzu Emulator Project # SPDX-FileCopyrightText: 2021 yuzu Emulator Project
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
name: yuzu-ci # Actions Documentation: https://forgejo.org/docs/next/user/actions/#list-of-tasks-in-a-repository
name: suyu-ci
on: on:
push: push:
branches: [ master ] branches: [ dev ]
tags: [ "*" ] tags: [ "*" ]
pull_request: pull_request:
branches: [ master ] branches: [ dev ]
jobs: jobs:
transifex: transifex:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container: yuzuemu/build-environments:linux-transifex container: yuzuemu/build-environments:linux-transifex
if: ${{ github.repository == 'yuzu-emu/yuzu' && !github.head_ref }} if: ${{ GITHUB_REPOSITORY == 'yuzu-emu/yuzu' && !GITHUB_HEAD_REF }}
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: Update Translation # - name: Update Translation
run: ./.ci/scripts/transifex/docker.sh # run: ./.ci/scripts/transifex/docker.sh
env: # env:
TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} # TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}
reuse: reuse:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'yuzu-emu/yuzu' }} if: ${{ GITHUB_REPOSITORY == 'suyu/suyu' }}
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
- uses: fsfe/reuse-action@v1 - uses: https://github.com/fsfe/reuse-action@v1

View file

@ -1,8 +1,13 @@
# SPDX-FileCopyrightText: 2023 yuzu Emulator Project # SPDX-FileCopyrightText: 2023 yuzu Emulator Project
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
# SPDX-License-Identifier: GPL-2.0-or-later # SPDX-License-Identifier: GPL-2.0-or-later
#
# GitHub Action to automate the identification of common misspellings in text files. # GitHub Action to automate the identification of common misspellings in text files.
# https://github.com/codespell-project/actions-codespell # https://github.com/codespell-project/actions-codespell
# https://github.com/codespell-project/codespell # https://github.com/codespell-project/codespell
# Actions Documentation: https://forgejo.org/docs/next/user/actions/#list-of-tasks-in-a-repository
name: codespell name: codespell
on: pull_request on: pull_request
permissions: {} permissions: {}
@ -11,7 +16,7 @@ jobs:
name: Check for spelling errors name: Check for spelling errors
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
persist-credentials: false persist-credentials: false
- uses: codespell-project/actions-codespell@master - uses: https://github.com/codespell-project/actions-codespell

View file

@ -1,11 +1,14 @@
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project # SPDX-FileCopyrightText: 2022 yuzu Emulator Project
# SPDX-FileCopyrightText: 2024 suyu Emulator Project
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
name: 'yuzu verify' # Actions Documentation: https://forgejo.org/docs/next/user/actions/#list-of-tasks-in-a-repository
name: 'suyu verify'
on: on:
pull_request: pull_request:
branches: [ master ] branches: [ dev ]
env: env:
PR_NUMBER: pr${{ github.event.number }} PR_NUMBER: pr${{ github.event.number }}
@ -14,11 +17,11 @@ jobs:
name: 'verify format' name: 'verify format'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: false submodules: false
- name: set up JDK 17 - name: set up JDK 17
uses: actions/setup-java@v3 uses: https://github.com/actions/setup-java@v3
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
@ -42,12 +45,12 @@ jobs:
image: yuzuemu/build-environments:${{ matrix.image }} image: yuzuemu/build-environments:${{ matrix.image }}
options: -u 1001 options: -u 1001
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: Set up cache - name: Set up cache
uses: actions/cache@v3 uses: https://code.forgejo.org/actions/cache@v3
id: ccache-restore id: ccache-restore
with: with:
path: ~/.ccache path: ~/.ccache
@ -66,7 +69,7 @@ jobs:
env: env:
NO_SOURCE_PACK: "YES" NO_SOURCE_PACK: "YES"
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: https://code.forgejo.org/actions/upload-artifact@v3
with: with:
name: ${{ matrix.type }} name: ${{ matrix.type }}
path: artifacts/ path: artifacts/
@ -75,7 +78,7 @@ jobs:
needs: format needs: format
runs-on: macos-14 runs-on: macos-14
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
@ -94,12 +97,12 @@ jobs:
needs: format needs: format
runs-on: windows-2022 runs-on: windows-2022
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: Set up cache - name: Set up cache
uses: actions/cache@v3 uses: https://code.forgejo.org/actions/cache@v3
with: with:
path: ~/.buildcache path: ~/.buildcache
key: ${{ runner.os }}-msvc-${{ github.sha }} key: ${{ runner.os }}-msvc-${{ github.sha }}
@ -121,7 +124,7 @@ jobs:
shell: pwsh shell: pwsh
run: .\.ci\scripts\windows\install-vulkan-sdk.ps1 run: .\.ci\scripts\windows\install-vulkan-sdk.ps1
- name: Set up MSVC - name: Set up MSVC
uses: ilammy/msvc-dev-cmd@v1 uses: https://github.com/ilammy/msvc-dev-cmd@v1
- name: Configure - name: Configure
env: env:
CC: cl.exe CC: cl.exe
@ -138,12 +141,12 @@ jobs:
shell: pwsh shell: pwsh
run: .\.ci\scripts\windows\upload.ps1 run: .\.ci\scripts\windows\upload.ps1
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: https://code.forgejo.org/actions/upload-artifact@v3
with: with:
name: msvc name: msvc
path: artifacts/ path: artifacts/
- name: Upload EXE - name: Upload EXE
uses: actions/upload-artifact@v3 uses: https://code.forgejo.org/actions/upload-artifact@v3
with: with:
name: ${{ env.INDIVIDUAL_EXE }} name: ${{ env.INDIVIDUAL_EXE }}
path: ${{ env.INDIVIDUAL_EXE }} path: ${{ env.INDIVIDUAL_EXE }}
@ -151,17 +154,17 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: format needs: format
steps: steps:
- uses: actions/checkout@v3 - uses: https://code.forgejo.org/actions/checkout@v3
with: with:
submodules: recursive submodules: recursive
fetch-depth: 0 fetch-depth: 0
- name: set up JDK 17 - name: set up JDK 17
uses: actions/setup-java@v3 uses: https://github.com/actions/setup-java@v3
with: with:
java-version: '17' java-version: '17'
distribution: 'temurin' distribution: 'temurin'
- name: Set up cache - name: Set up cache
uses: actions/cache@v3 uses: https://code.forgejo.org/actions/cache@v3
with: with:
path: | path: |
~/.gradle/caches ~/.gradle/caches
@ -171,7 +174,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-android- ${{ runner.os }}-android-
- name: Query tag name - name: Query tag name
uses: olegtarasov/get-tag@v2.1.2 uses: https://github.com/olegtarasov/get-tag@v2.1.2
id: tagName id: tagName
- name: Install dependencies - name: Install dependencies
run: | run: |
@ -186,7 +189,7 @@ jobs:
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }} ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
run: ./.ci/scripts/android/upload.sh run: ./.ci/scripts/android/upload.sh
- name: Upload - name: Upload
uses: actions/upload-artifact@v3 uses: https://code.forgejo.org/actions/upload-artifact@v3
with: with:
name: android name: android
path: artifacts/ path: artifacts/