Skip to content

Commit

Permalink
Hack workflow to run on pull_request with nightly packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottTodd committed Jul 31, 2024
1 parent 46e8c61 commit 239b84e
Showing 1 changed file with 41 additions and 32 deletions.
73 changes: 41 additions & 32 deletions .github/workflows/build_and_test_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 239b84e

Please sign in to comment.