diff options
| -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 }} | ||