-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
torch-mlir pip dep buildifier use python 3.10 llvm/llvm-project#75963 fix fixes --test_output=errors for showing errors on GHA cleanup minor add py_test fix fix paths fix add python tests to test_suite headers enable python lit tests buildifier clean disk space fix bump actions versions fix fix fix update requirements minor try stablehlo without test_output cleanup specify shell disk space cleanup trial fix more fixes fix fix
- Loading branch information
1 parent
b0d474e
commit 11f3e27
Showing
30 changed files
with
514 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Licensed under the Apache License v2.0 with LLVM Exceptions. | ||
# See https://llvm.org/LICENSE.txt for license information. | ||
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
# Also available under a BSD-style license. See LICENSE. | ||
|
||
name: "Setup build environment" | ||
description: "Setup build environment" | ||
|
||
inputs: | ||
cache-prefix: | ||
required: true | ||
default: 'mlir-tcp' | ||
|
||
runs: | ||
# This is a composite action - has a list of steps to execute. | ||
using: "composite" | ||
|
||
steps: | ||
# https://github.com/jlumbroso/free-disk-space/blob/main/action.yml | ||
- name: Free disk space | ||
shell: bash | ||
run: | | ||
df -h | ||
sudo swapoff -a | ||
sudo rm -f /swapfile | ||
sudo rm -f /mnt/swapfile | ||
free -h | ||
sudo rm -rf /usr/share/dotnet | ||
sudo rm -rf /usr/local/lib/android | ||
sudo rm -rf /opt/ghc | ||
sudo rm -rf "/usr/local/share/boost" | ||
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | ||
sudo apt-get remove -y '^aspnetcore-.*' || echo "::warning::The command [sudo apt-get remove -y '^aspnetcore-.*'] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y '^dotnet-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^dotnet-.*' --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y '^llvm-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^llvm-.*' --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y 'php.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y 'php.*' --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y '^mongodb-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mongodb-.*' --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y '^mysql-.*' --fix-missing || echo "::warning::The command [sudo apt-get remove -y '^mysql-.*' --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing || echo "::warning::The command [sudo apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y google-cloud-sdk --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-sdk --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get remove -y google-cloud-cli --fix-missing || echo "::debug::The command [sudo apt-get remove -y google-cloud-cli --fix-missing] failed to complete successfully. Proceeding..." | ||
sudo apt-get autoremove -y || echo "::warning::The command [sudo apt-get autoremove -y] failed to complete successfully. Proceeding..." | ||
sudo apt-get clean || echo "::warning::The command [sudo apt-get clean] failed to complete successfully. Proceeding..." | ||
docker rmi $(docker image ls -aq) | ||
sudo docker image prune --all --force || true | ||
df -h | ||
# Continually update cache even if there's a "hit" during | ||
# restore to avoid the cache going stale over time | ||
# https://github.com/actions/cache/blob/main/tips-and-workarounds.md#update-a-cache | ||
- name: Setup cache for bazel | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.cache/bazel | ||
key: ${{ inputs.cache-prefix }}-bazel-build-cache-${{ runner.os }}-${{ github.sha }} | ||
restore-keys: | | ||
${{ inputs.cache-prefix }}-bazel-build-cache-${{ runner.os }} | ||
- name: Create bazel cache dir when not found | ||
shell: bash | ||
run: | | ||
if [ ! -d "${HOME}/.cache/bazel" ]; then | ||
mkdir -p "${HOME}/.cache/bazel" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-f https://github.com/llvm/torch-mlir-release/releases/expanded_assets/dev-wheels | ||
torch | ||
torch-mlir |
Oops, something went wrong.