From 6b243fe212e8b654c81a1a775fecce1c5e832d68 Mon Sep 17 00:00:00 2001 From: Davin Chia Date: Wed, 16 Mar 2022 18:29:39 +0800 Subject: [PATCH] Split out Platform builds. (#11188) Follow up to #11148 and #11148 . Here we configure it so that platform builds only run on platform changes. As always, the build will run on build and github changes. --- .github/workflows/gradle.yml | 446 ++++++++++++++++++----------------- 1 file changed, 228 insertions(+), 218 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 2d3c3a2055c67..02c8c99a1589e 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -65,10 +65,77 @@ jobs: # echo '${{ toJSON(needs) }}' ## BUILDS + octavia-cli-build: + needs: changes + runs-on: ubuntu-latest + if: needs.changes.outputs.cli == 'true' || needs.changes.outputs.build == 'true' || github.ref == 'refs/heads/master' + name: "Octavia CLI: Build" + timeout-minutes: 90 + steps: + - name: Checkout Airbyte + uses: actions/checkout@v2 - # Gradle Build (Connectors Base) - # In case of self-hosted EC2 errors, remove this block. + - name: Cache Build Artifacts + uses: ./.github/actions/cache-build-artifacts + with: + cache-key: ${{ secrets.CACHE_VERSION }} + cache-python: "false" + - uses: actions/setup-java@v1 + with: + java-version: "17" + + # octavia-cli install and testing requires Python. + # We use 3.8 in this project because 3.7 is not supported on Apple M1. + - uses: actions/setup-python@v2 + with: + python-version: "3.8" + + - name: Set up CI Gradle Properties + run: | + mkdir -p ~/.gradle/ + cat > ~/.gradle/gradle.properties </dev/null 2>&1; do + sleep 1 + done + + sudo apt-get update && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb + + - name: Set up CI Gradle Properties + run: | + mkdir -p ~/.gradle/ + cat > ~/.gradle/gradle.properties < ~/.gradle/gradle.properties </dev/null 2>&1; do - sleep 1 - done - - sudo apt-get update && sudo apt-get install -y libgtk2.0-0 libgtk-3-0 libgbm-dev libnotify-dev libgconf-2-4 libnss3 libxss1 libasound2 libxtst6 xauth xvfb - - - name: Set up CI Gradle Properties - run: | - mkdir -p ~/.gradle/ - cat > ~/.gradle/gradle.properties <