Skip to content

Commit c68dbc6

Browse files
[LLVM] Bump to 0dff52ba9 (#144)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent ef8ddf0 commit c68dbc6

File tree

3 files changed

+42
-1
lines changed

3 files changed

+42
-1
lines changed

.github/actions/setup_base/action.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ inputs:
1313
arch:
1414
required: true
1515
description: ''
16+
container:
17+
required: false
18+
description: ''
19+
runs-on:
20+
required: false
21+
description: ''
1622
cache-key:
1723
required: true
1824
description: ''
@@ -40,6 +46,33 @@ runs:
4046
timezoneMacos: "Asia/Singapore"
4147
timezoneWindows: "Singapore Standard Time"
4248

49+
- name: "Clean ubuntu"
50+
if: (inputs.container && startsWith(inputs.runs-on, 'ubuntu'))
51+
shell: bash
52+
run: |
53+
54+
echo "before"
55+
df -h
56+
rm -rf $GH_HOST_DIR/usr/local/lib/android
57+
rm -rf $GH_HOST_DIR/usr/share/dotnet
58+
rm -rf $GH_HOST_DIR/opt/ghc
59+
rm -rf $GH_HOST_DIR/$AGENT_TOOLSDIRECTORY
60+
# i don't know why chroot doesn't work? it should?
61+
# chroot /ghhost
62+
# apt-get remove -y '^aspnetcore-.*'
63+
# apt-get remove -y '^dotnet-.*'
64+
# apt-get remove -y '^llvm-.*'
65+
# apt-get remove -y 'php.*'
66+
# apt-get remove -y '^mongodb-.*'
67+
# apt-get remove -y '^mysql-.*'
68+
# apt-get remove -y azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri
69+
# apt-get remove -y google-cloud-sdk || sudo apt-get remove -y google-cloud-cli || true
70+
# apt-get autoremove -y
71+
# apt-get clean
72+
# docker image prune --all --force
73+
echo "after"
74+
df -h
75+
4376
# notes for next time i bash my head against this:
4477
# 1. github.workspace and $GITHUB_WORKSPACE are different between container actions and non-container actions
4578
# 2. action/save-restore claims it expands ~ but that's a lie

.github/workflows/build_llvm.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ jobs:
102102

103103
container:
104104
image: ${{ matrix.container }}
105+
volumes:
106+
- /:/ghhost
107+
options: --privileged --pid=host --ipc=host
108+
env:
109+
AGENT_TOOLSDIRECTORY: ${{ env.AGENT_TOOLSDIRECTORY }}
110+
GH_HOST_DIR: "/ghhost"
105111

106112
steps:
107113
- name: "Check out repository"
@@ -117,6 +123,8 @@ jobs:
117123
restore-key: "mlir_${{ matrix.name }}_clang"
118124
os: ${{ matrix.os }}
119125
arch: ${{ matrix.arch }}
126+
container: ${{ matrix.container }}
127+
runs-on: ${{ matrix.runs-on }}
120128

121129
- name: "Build LLVM and MLIR"
122130
id: build

0 commit comments

Comments
 (0)