Skip to content

Commit

Permalink
Merge branch 'master' into dev-fix-make_aot_kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
PGZXB committed Jul 27, 2022
2 parents 5ecad59 + 43a7448 commit 6a7e5a1
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 20 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,9 @@ jobs:
strategy:
fail-fast: false
matrix: ${{ fromJson(needs.matrix_prep.outputs.matrix) }}
runs-on: macos-10.15
runs-on: [self-hosted, macos-10.15]
env:
PY: ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -215,19 +217,16 @@ jobs:
restore-keys: |
sccache-mac-
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Download Pre-Built LLVM 10.0.0
run: python misc/ci_download.py
env:
CI_PLATFORM: macos-10.15
CI_PLATFORM: macos

- name: Create Python Wheel
run: |
brew install molten-vk
export PATH=$(pwd)/taichi-llvm/bin/:$PATH
export PATH=$(ls -d ~/mini*/envs/$PY/bin):$PATH
bash .github/workflows/scripts/unix_build.sh
brew uninstall molten-vk
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/scripts/unix_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ EOF
python3 taichi-release-tests/run.py --log=DEBUG --runners 1 taichi-release-tests/timelines
fi

python3 tests/run_tests.py --cpp

if [ ! -z $TI_SKIP_CPP_TESTS ]; then
python3 tests/run_tests.py --cpp
fi

if [ -z "$GPU_TEST" ]; then
if [[ $PLATFORM == *"m1"* ]]; then
Expand Down
33 changes: 20 additions & 13 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ concurrency:
group: ${{ github.event.number || github.run_id }}
cancel-in-progress: true

env:
TI_CI: "1"

jobs:
check_files:
name: Check files
Expand Down Expand Up @@ -192,16 +195,16 @@ jobs:
with_cc: OFF
with_cpp_tests: ON
wanted_archs: 'cpu'
runs-on: ${{ matrix.os }}
runs-on:
- self-hosted
- ${{ matrix.os }}
env:
PY: ${{ matrix.python }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'

- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Get sccache cache
uses: actions/cache@v2
with:
Expand All @@ -210,23 +213,27 @@ jobs:
restore-keys: |
sccache-mac-
- name: Download Pre-Built LLVM 10.0.0
- name: Setup Python PATH && Download Pre-Built LLVM 10.0.0
run: |
if [[ ${{needs.check_files.outputs.run_job}} == false ]]; then
export PATH=`pwd`/taichi-llvm/bin/:$PATH
# miniconda / miniforge
export PATH=$(ls -d ~/mini*/envs/$PY/bin):$PATH
if [[ "${{needs.check_files.outputs.run_job}}" == "false" ]]; then
exit 0
fi
python misc/ci_download.py
echo PATH=$PATH >> $GITHUB_ENV
#
env:
CI_PLATFORM: ${{ matrix.os }}
CI_PLATFORM: macos

- name: Build & Install
run: |
brew install molten-vk
if [[ ${{needs.check_files.outputs.run_job}} == false ]]; then
if [[ "${{needs.check_files.outputs.run_job}}" == "false" ]]; then
exit 0
fi
brew install molten-vk
mkdir -p sccache_cache
export PATH=`pwd`/taichi-llvm/bin/:$PATH
.github/workflows/scripts/unix_build.sh
brew uninstall molten-vk
env:
Expand All @@ -242,13 +249,13 @@ jobs:
- name: Test
id: test
run: |
if [[ ${{needs.check_files.outputs.run_job}} == false ]]; then
if [[ "${{needs.check_files.outputs.run_job}}" == "false" ]]; then
exit 0
fi
.github/workflows/scripts/unix_test.sh
env:
TI_WANTED_ARCHS: ${{ matrix.wanted_archs }}
TI_CI: 1
TI_SKIP_CPP_TESTS: Disabled because Vulkan is supported but not working on buildbot4

- name: Save wheel if test failed
if: failure() && steps.test.conclusion == 'failure'
Expand Down

0 comments on commit 6a7e5a1

Please sign in to comment.