From 270d3eb7eb878f94dc590b2a7672dfda9ff8b553 Mon Sep 17 00:00:00 2001 From: Steveice10 <1269164+Steveice10@users.noreply.github.com> Date: Fri, 22 Sep 2023 09:15:47 -0700 Subject: [PATCH] ci: Split out non-release CI jobs into separate workflows. (#7001) --- .github/workflows/{ci.yml => build.yml} | 28 +------------------------ .github/workflows/format.yml | 22 +++++++++++++++++++ .github/workflows/transifex.yml | 20 ++++++++++++++++++ 3 files changed, 43 insertions(+), 27 deletions(-) rename .github/workflows/{ci.yml => build.yml} (91%) create mode 100644 .github/workflows/format.yml create mode 100644 .github/workflows/transifex.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/build.yml similarity index 91% rename from .github/workflows/ci.yml rename to .github/workflows/build.yml index 457bb1cd7..4e27f980a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/build.yml @@ -1,4 +1,4 @@ -name: citra-ci +name: citra-build on: push: @@ -8,19 +8,6 @@ on: branches: [ master ] jobs: - clang-format: - runs-on: ubuntu-latest - container: - image: citraemu/build-environments:linux-fresh - options: -u 1001 - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Build - env: - COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} - run: ./.ci/clang-format.sh source: if: ${{ !github.head_ref }} runs-on: ubuntu-latest @@ -269,19 +256,6 @@ jobs: run: brew install ccache glslang ninja - name: Build run: ./.ci/ios.sh - transifex: - runs-on: ubuntu-latest - container: citraemu/build-environments:linux-fresh - if: ${{ github.repository == 'citra-emu/citra' && !github.head_ref }} - steps: - - uses: actions/checkout@v3 - with: - submodules: recursive - fetch-depth: 0 - - name: Update Translation - run: ./.ci/transifex.sh - env: - TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }} release: runs-on: ubuntu-latest needs: [windows, linux, macos-universal, android, source] diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml new file mode 100644 index 000000000..574a24e62 --- /dev/null +++ b/.github/workflows/format.yml @@ -0,0 +1,22 @@ +name: citra-format + +on: + push: + branches: [ "*" ] + pull_request: + branches: [ master ] + +jobs: + clang-format: + runs-on: ubuntu-latest + container: + image: citraemu/build-environments:linux-fresh + options: -u 1001 + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Build + env: + COMMIT_RANGE: ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} + run: ./.ci/clang-format.sh diff --git a/.github/workflows/transifex.yml b/.github/workflows/transifex.yml new file mode 100644 index 000000000..64d6e5866 --- /dev/null +++ b/.github/workflows/transifex.yml @@ -0,0 +1,20 @@ +name: citra-transifex + +on: + push: + branches: [ master ] + +jobs: + transifex: + runs-on: ubuntu-latest + container: citraemu/build-environments:linux-fresh + if: ${{ github.repository == 'citra-emu/citra' }} + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + fetch-depth: 0 + - name: Update Translation + run: ./.ci/transifex.sh + env: + TX_TOKEN: ${{ secrets.TRANSIFEX_API_TOKEN }}