Complete Chinese translation synchronized with FF7 FFSky ver.3 #1494
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| tags: | |
| - 'v*' | |
| pull_request: | |
| branches: [ master ] | |
| env: | |
| QtVersion: 6.9.1 | |
| QtTools: 'tools_ifw' | |
| QtKey: "6.9.1-ifw47" | |
| BuildType: RelWithDebInfo | |
| cmakeConfigure: "cmake -S. -Bbuild -DDEMOS=ON -DQT_DEFAULT_MAJOR_VERSION=6 -DCMAKE_BUILD_TYPE=RelWithDebInfo -G Ninja -DSBOM_LINT=ON" | |
| debianRequirments: "build-essential git zlib1g-dev cmake doxygen graphviz qt6-tools-dev qt6-tools-dev-tools qt6-l10n-tools qt6-declarative-dev qt6-base-dev libqt6svg6-dev qt6-base-dev-tools qt6-translations-l10n libqt6core5compat6-dev libgl1-mesa-dev rename devscripts ninja-build clang" | |
| jobs: | |
| precheck: | |
| name: Job Info | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.checkbuild.outputs.version }} | |
| steps: | |
| - name: Run Info | |
| id: checkbuild | |
| run: | | |
| if [[ "$GITHUB_REF" == *"tags/v"* ]]; then | |
| VER="$GITHUB_REF_NAME" | |
| else | |
| VER="continuous" | |
| fi | |
| echo "version=$VER" >> $GITHUB_OUTPUT | |
| - name: REUSE Compliance Check | |
| uses: fsfe/reuse-action@v4 | |
| with: | |
| args: spdx | |
| deb_builder: | |
| name: debianBuilder-${{matrix.config.name}}-${{matrix.config.debArch}} | |
| runs-on: ${{matrix.config.os}} | |
| needs: precheck | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - name: jammy | |
| os: ubuntu-22.04 | |
| debArch: amd64 | |
| - name: jammy | |
| os: ubuntu-22.04-arm | |
| debArch: arm64 | |
| - name: noble | |
| os: ubuntu-24.04 | |
| debArch: amd64 | |
| - name: noble | |
| os: ubuntu-24.04-arm | |
| debArch: arm64 | |
| steps: | |
| - uses: sithlord48/fancy-checkout@v1 | |
| - name: Install Dependencies | |
| run: | | |
| sudo apt-get update -y > /dev/null | |
| sudo apt-get upgrade -y > /dev/null | |
| sudo apt-get install -qqq ${{env.debianRequirments}} > /dev/null | |
| sudo apt search qt | grep installed | |
| pip install --user ntia-conformance-checker | |
| pip install --user spdx-tools | |
| - name: Build | |
| run: | | |
| ${{env.cmakeConfigure}} -DCMAKE_INSTALL_PREFIX=/usr -DPACKAGE_VERSION_LABEL="${{ needs.precheck.outputs.version }}" -DCPACK_DEBIAN_PACKAGE_RELEASE=${{github.run_attempt}} -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ | |
| cmake --build build --target package | |
| mv build/ff7tk[-_]*.* . | |
| mv build/libff7tk[-_]*.deb . | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: debian-artifacts-${{matrix.config.name}}-${{matrix.config.debArch}} | |
| path: | | |
| ff7tk[-_]*.* | |
| libff7tk*.deb | |
| main_build: | |
| name: ${{ matrix.config.name }} | |
| runs-on: ${{ matrix.config.os }} | |
| needs: precheck | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - { | |
| name: "Linux-x86_64" | |
| , os: ubuntu-22.04, arch: x86_64, qtTools: 'tools_ifw' | |
| , extraCmakeConfig: "-DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" | |
| } | |
| - { | |
| name: "Linux-aarch64" | |
| , os: ubuntu-24.04-arm, arch: aarch64 | |
| , extraCmakeConfig: "-DCMAKE_INSTALL_LIBDIR=lib -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++" | |
| } | |
| - { | |
| name: "MacOS" | |
| , os: macos-latest | |
| , extraCmakeConfig: "-DCMAKE_OSX_ARCHITECTURES=\"arm64;x86_64\"" | |
| } | |
| - { | |
| name: "Windows-x64" | |
| , os: windows-2022, arch: x64, qtTools: 'tools_ifw' | |
| , extraCmakeConfig: "-DZLIB_ROOT=C:/zlib" | |
| } | |
| - { | |
| name: "Windows-arm64" | |
| , os: windows-11-arm, arch: arm64 | |
| , extraCmakeConfig: "-DZLIB_ROOT=C:/zlib" | |
| } | |
| steps: | |
| - uses: sithlord48/fancy-checkout@v1 | |
| - name: Cache Zlib | |
| id: cache-zlib | |
| if: runner.os == 'Windows' | |
| uses: actions/cache@v4 | |
| with: | |
| path: C:/zlib | |
| key: ${{ runner.os }}${{ matrix.config.arch }}-zlib-1.3 | |
| - name: Cache Chocolatey | |
| id: cache-choco | |
| if: (runner.os == 'Windows') | |
| uses: actions/cache@v4 | |
| with: | |
| path: | | |
| C:/ProgramData/chocolatey/bin/ | |
| C:/ProgramData/chocolatey/lib/doxygen.install | |
| C:/ProgramData/chocolatey/lib/Graphviz | |
| C:/Program*/doxygen/ | |
| C:/Program*/Graphviz/ | |
| key: cache-chocolatey${{ matrix.config.arch }}-zlib-1-3 | |
| - name: Setup MSVC Shell For Windows | |
| if: runner.os == 'Windows' | |
| uses: ilammy/msvc-dev-cmd@v1 | |
| with: | |
| arch: ${{matrix.config.arch}} | |
| - name: Install Dependencies | |
| if: ((runner.os == 'Windows') && (steps.cache-choco.outputs.cache-hit != 'true')) || (runner.os != 'Windows') | |
| shell: bash | |
| run: | | |
| if [ "$RUNNER_OS" == "Linux" ]; then | |
| sudo apt-get update > /dev/null && sudo apt-get install -qqq doxygen graphviz devscripts libxkbcommon-x11-0 clang > /dev/null | |
| elif [ "$RUNNER_OS" == "Windows" ]; then | |
| choco install doxygen.install graphviz | |
| else | |
| brew install doxygen graphviz | |
| fi | |
| - name: Install Qt | |
| uses: jurplel/install-qt-action@v4.3.0 | |
| with: | |
| version: ${{ env.QtVersion }} | |
| modules: qt5compat | |
| cache: true | |
| cache-key-prefix: ${{runner.os}}-${{matrix.config.arch}}-${{env.QtKey}} | |
| tools: ${{matrix.config.qtTools}} | |
| - name: Build Zlib For Windows | |
| if: (runner.os == 'Windows') && (steps.cache-zlib.outputs.cache-hit != 'true') | |
| run: | | |
| git clone -q --branch=v1.3 https://github.com/madler/zlib ${{github.workspace}}\zlib-git | |
| cmake -S${{github.workspace}}\zlib-git -B${{github.workspace}}\zlib-git\build -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=C:/zlib | |
| cmake --build ${{github.workspace}}\zlib-git\build --config Release | |
| cmake --install ${{github.workspace}}\zlib-git\build --strip | |
| - name: Update Windows Paths | |
| if: (runner.os == 'Windows') | |
| run: | | |
| echo "C:\zlib\bin\" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "C:\Program Files\doxygen\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "C:\Program Files\Graphviz\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| echo "C:\Python312" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
| - name: Install SPDX Tooling | |
| shell: bash | |
| run: | | |
| pip install --user ntia-conformance-checker | |
| pip install --user spdx-tools | |
| pip install --user reuse | |
| - name: Build ff7tk | |
| run: | | |
| ${{env.cmakeConfigure}} -DPACKAGE_VERSION_LABEL="${{ needs.precheck.outputs.version }}" ${{matrix.config.extraCmakeConfig}} | |
| cmake --build build --config ${{env.BuildType}} --target package | |
| - name: Rename Tarball for Linux compat | |
| if: (runner.os == 'Linux') | |
| run: | | |
| mv build/ff7tk-${{ needs.precheck.outputs.version }}*.tar.gz build/ff7tk-${{ needs.precheck.outputs.version }}-linux_${{matrix.config.arch}}.tar.gz | |
| rm build/libff7tk-*.deb | |
| - name: Update Documentation | |
| if: (runner.os == 'Linux' && matrix.config.arch == 'x86_64' && github.ref == 'refs/heads/master') | |
| uses: JamesIves/github-pages-deploy-action@v4.5.0 | |
| with: | |
| branch: gh-pages | |
| folder: build/docs/html | |
| - name: Upload | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: artifact-${{matrix.config.name}} | |
| path: | | |
| ${{ github.workspace }}/build/ff7tk[-_]*.* | |
| ${{ github.workspace }}/build/libff7tk[-_]*.* | |
| release_assets: | |
| name: Release | |
| needs: [main_build, deb_builder] | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Download Files | |
| uses: actions/download-artifact@v4 | |
| - name: Deploy Continuous | |
| if: (github.ref == 'refs/heads/master') && !(contains(github.ref, '/tags/v')) | |
| uses: crowbarmaster/GH-Automatic-Releases@latest | |
| with: | |
| repo_token: "${{ secrets.DEPLOYTOKEN }}" | |
| automatic_release_tag: "continuous" | |
| prerelease: false | |
| title: "Continuous Build" | |
| files: | | |
| artifact-*/* | |
| debian-artifacts-*/* | |
| - name: Deploy Release | |
| if: contains(github.ref, '/tags/v') | |
| uses: crowbarmaster/GH-Automatic-Releases@latest | |
| with: | |
| repo_token: "${{ secrets.DEPLOYTOKEN }}" | |
| prerelease: false | |
| files: | | |
| artifact-*/* | |
| debian-artifacts-*/* |