@@ -12,6 +12,17 @@ steps:
12
12
os : " {{matrix.os}}"
13
13
arch : " {{matrix.arch}}"
14
14
if : build.tag == null
15
+ plugins :
16
+ - cache#v0.6.0:
17
+ manifest : .buildkite/pipeline.yml
18
+ path : .local
19
+ restore : file
20
+ save : file
21
+ - cache#v0.6.0:
22
+ manifest : WORKSPACE
23
+ path : .baztmp
24
+ restore : file
25
+ save : file
15
26
commands : |
16
27
mkdir -p .local/bin
17
28
export PATH="`pwd`/.local/bin:`pwd`/conda/bin:\$PATH"
@@ -26,17 +37,17 @@ steps:
26
37
sed -i.bak 's~targets = \[.*\]~targets = \[\"X86\", \"AMDGPU\"]~g' WORKSPACE
27
38
curl -fLO https://repo.anaconda.com/miniconda/Miniconda3-py310_23.3.1-0-MacOSX-{{matrix.arch}}.sh
28
39
fi
29
- curl -fLO "https://github.com/bazelbuild/bazelisk/releases/download/v1.17 .0/bazelisk-darwin"
40
+ curl -fLO "https://github.com/bazelbuild/bazelisk/releases/download/v1.19 .0/bazelisk-darwin"
30
41
mv bazelisk-darwin .local/bin/bazel
31
42
chmod +x .local/bin/bazel
32
43
chmod +x Miniconda*.sh
33
44
./Miniconda*.sh -b -p `pwd`/conda
34
45
rm Miniconda*.sh
35
46
elif [ "{{matrix.os}}" == "linux" ]; then
36
47
if [ "{{matrix.arch}}" == "aarch64" ]; then
37
- curl -fLO https://github.com/bazelbuild/bazelisk/releases/download/v1.17 .0/bazelisk-linux-arm64
48
+ curl -fLO https://github.com/bazelbuild/bazelisk/releases/download/v1.19 .0/bazelisk-linux-arm64
38
49
else
39
- curl -fLO https://github.com/bazelbuild/bazelisk/releases/download/v1.17 .0/bazelisk-linux-amd64
50
+ curl -fLO https://github.com/bazelbuild/bazelisk/releases/download/v1.19 .0/bazelisk-linux-amd64
40
51
fi
41
52
mv bazel* .local/bin/bazel
42
53
chmod +x .local/bin/bazel
@@ -58,12 +69,13 @@ steps:
58
69
# conda install -c conda-forge cxx-compiler -y
59
70
python -m ensurepip --upgrade
60
71
python -m pip install --user numpy wheel
61
- mkdir baztmp
62
- bazel --output_user_root=`pwd`/baztmp build :enzyme_ad
72
+ mkdir -p .baztmp
73
+ rm -f bazel-bin/*.whl
74
+ bazel --output_user_root=`pwd`/.baztmp build :enzyme_ad
63
75
cp bazel-bin/*.whl .
64
76
python -m pip install *.whl
65
77
python -m pip install "jax[cpu]"
66
- bazel --output_user_root=`pwd`/baztmp test --test_output=errors ...
78
+ bazel --output_user_root=`pwd`/. baztmp test --test_output=errors ...
67
79
artifact_paths :
68
80
- " *.whl"
69
81
0 commit comments