From 239b84eb34fb3780c25f406ebdb7b68149e98dae Mon Sep 17 00:00:00 2001 From: Scott Todd Date: Wed, 31 Jul 2024 11:16:26 -0700 Subject: [PATCH] Hack workflow to run on pull_request with nightly packages. --- .github/workflows/build_and_test_android.yml | 73 +++++++++++--------- 1 file changed, 41 insertions(+), 32 deletions(-) diff --git a/.github/workflows/build_and_test_android.yml b/.github/workflows/build_and_test_android.yml index 2d158f31a0a47..b33b6c6c828eb 100644 --- a/.github/workflows/build_and_test_android.yml +++ b/.github/workflows/build_and_test_android.yml @@ -11,29 +11,29 @@ name: Build and test android on: pull_request: - workflow_call: - inputs: - runner-group: - required: true - type: string - runner-env: - required: true - type: string - # write-caches: - # required: true - # type: string - is-pr: - required: true - type: boolean - # install-dir: - # required: true - # type: string - # install-dir-archive: - # required: true - # type: string - # install-dir-gcs-artifact: - # required: true - # type: string + # workflow_call: + # inputs: + # runner-group: + # required: true + # type: string + # runner-env: + # required: true + # type: string + # # write-caches: + # # required: true + # # type: string + # is-pr: + # required: true + # type: boolean + # # install-dir: + # # required: true + # # type: string + # # install-dir-archive: + # # required: true + # # type: string + # # install-dir-gcs-artifact: + # # required: true + # # type: string permissions: contents: read @@ -81,21 +81,30 @@ jobs: with: # Must match the subset of versions built in pkgci_build_packages. python-version: "3.11" - - uses: actions/download-artifact@v4.1.7 - with: - name: linux_x86_64_release_packages - path: ${{ env.PACKAGE_DOWNLOAD_DIR }} + - name: Setup base venv run: | - ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \ - --artifact-path=${PACKAGE_DOWNLOAD_DIR} \ - --fetch-gh-workflow=${{ inputs.artifact_run_id }} - - name: Install dependencies + python -m venv ${VENV_DIR} + source ${VENV_DIR}/bin/activate + python -m pip install \ + --find-links https://iree.dev/pip-release-links.html \ + --upgrade iree-compiler iree-runtime + + # - uses: actions/download-artifact@v4.1.7 + # with: + # name: linux_x86_64_release_packages + # path: ${{ env.PACKAGE_DOWNLOAD_DIR }} + # - name: Setup base venv + # run: | + # ./build_tools/pkgci/setup_venv.py ${VENV_DIR} \ + # --artifact-path=${PACKAGE_DOWNLOAD_DIR} \ + # --fetch-gh-workflow=${{ inputs.artifact_run_id }} + - name: "Installing build dependencies" run: | sudo apt update sudo apt install -y cmake clang ninja-build export CC=clang - export CXX=clang + export CXX=clang++ # Android-specific setup. - uses: nttld/setup-ndk@v1