diff options
| author | 2021-10-15 17:06:01 -0400 | |
|---|---|---|
| committer | 2021-10-15 17:06:01 -0400 | |
| commit | 2a5014b1936887ae1826a74efaefafca1bca0cae (patch) | |
| tree | 292e96cc674a58f7713573413473744ff390b86d | |
| parent | Merge pull request #7172 from Morph1984/out-of-bounds (diff) | |
| parent | .ci: Use Github Actions to update translation source files (diff) | |
| download | yuzu-2a5014b1936887ae1826a74efaefafca1bca0cae.tar.gz yuzu-2a5014b1936887ae1826a74efaefafca1bca0cae.tar.xz yuzu-2a5014b1936887ae1826a74efaefafca1bca0cae.zip | |
Merge pull request #7183 from FearlessTobi/translation-ci
.ci: Use Github Actions to update translation source files
| -rw-r--r-- | .ci/scripts/transifex/docker.sh | 25 | ||||
| -rw-r--r-- | .github/workflows/ci.yml | 23 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.ci/scripts/transifex/docker.sh b/.ci/scripts/transifex/docker.sh new file mode 100644 index 000000000..bafd326f9 --- /dev/null +++ b/.ci/scripts/transifex/docker.sh | |||
| @@ -0,0 +1,25 @@ | |||
| 1 | #!/bin/bash -e | ||
| 2 | |||
| 3 | # Setup RC file for tx | ||
| 4 | cat << EOF > ~/.transifexrc | ||
| 5 | [https://www.transifex.com] | ||
| 6 | hostname = https://www.transifex.com | ||
| 7 | username = api | ||
| 8 | password = $TRANSIFEX_API_TOKEN | ||
| 9 | EOF | ||
| 10 | |||
| 11 | |||
| 12 | set -x | ||
| 13 | |||
| 14 | echo -e "\e[1m\e[33mBuild tools information:\e[0m" | ||
| 15 | cmake --version | ||
| 16 | gcc -v | ||
| 17 | tx --version | ||
| 18 | |||
| 19 | mkdir build && cd build | ||
| 20 | cmake .. -DENABLE_QT_TRANSLATION=ON -DGENERATE_QT_TRANSLATION=ON -DCMAKE_BUILD_TYPE=Release -DENABLE_SDL2=OFF | ||
| 21 | make translation | ||
| 22 | cd .. | ||
| 23 | |||
| 24 | cd dist/languages | ||
| 25 | tx push -s | ||
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 000000000..d3400670a --- /dev/null +++ b/.github/workflows/ci.yml | |||
| @@ -0,0 +1,23 @@ | |||
| 1 | name: yuzu-ci | ||
| 2 | |||
| 3 | on: | ||
| 4 | push: | ||
| 5 | branches: [ master ] | ||
| 6 | tags: [ "*" ] | ||
| 7 | pull_request: | ||
| 8 | branches: [ master ] | ||
| 9 | |||
| 10 | jobs: | ||
| 11 | transifex: | ||
| 12 | runs-on: ubuntu-latest | ||
| 13 | container: yuzuemu/build-environments:linux-transifex | ||
| 14 | if: ${{ github.repository == 'yuzu-emu/yuzu' && !github.head_ref }} | ||
| 15 | steps: | ||
| 16 | - uses: actions/checkout@v2 | ||
| 17 | with: | ||
| 18 | submodules: recursive | ||
| 19 | fetch-depth: 0 | ||
| 20 | - name: Update Translation | ||
| 21 | run: ./.ci/scripts/transifex/docker.sh | ||
| 22 | env: | ||
| 23 | TRANSIFEX_API_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} | ||