Skip to content

Commit e81db39

Browse files
committed
[CI] Automatically create version-specific manifests
1 parent e776c21 commit e81db39

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.buildkite/pipeline.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,11 @@ steps:
2525
mkdir -p "$OCEANANIGANS_DIR"
2626
rsync -a . "$OCEANANIGANS_DIR/"
2727
cd "$OCEANANIGANS_DIR"
28-
mv Manifest.toml Manifest-v1.12.toml
2928
3029
julia +$JULIA_VERSION -O0 --color=yes --project -e 'using Pkg; Pkg.test()'
30+
# After we have instantiated the general environment, move manifest to the
31+
# version-specific filename, not to clash with the manifest for Enzyme.
32+
mv -v Manifest.toml Manifest-v$(echo "${JULIA_VERSION}" | cut -d. -f1-2).toml
3133
retry:
3234
automatic:
3335
- exit_status: 1
@@ -45,6 +47,9 @@ steps:
4547
cd "$OCEANANIGANS_DIR"
4648
4749
julia +$JULIA_VERSION_ENZYME -O0 --color=yes --project -e 'using Pkg; Pkg.test()'
50+
# After we have instantiated the Enzyme environment, move manifest to the
51+
# version-specific filename, not to clash with the general manifest.
52+
mv -v Manifest.toml Manifest-v$(echo "${JULIA_VERSION_ENZYME}" | cut -d. -f1-2).toml
4853
retry:
4954
automatic:
5055
- exit_status: 1
@@ -84,6 +89,7 @@ steps:
8489
8590
# Run tests
8691
cd "$OCEANANIGANS_DIR"
92+
touch Manifest-v$(echo "${JULIA_VERSION}" | cut -d. -f1-2).toml
8793
julia +$JULIA_VERSION -O0 --color=yes --project -e 'using Pkg; Pkg.test()'
8894
8995
matrix:
@@ -140,7 +146,8 @@ steps:
140146
141147
# Run tests
142148
cd "$OCEANANIGANS_DIR"
143-
julia +$JULIA_VERSIO_ENZYME -O0 --color=yes --project -e 'using Pkg; Pkg.test()'
149+
touch Manifest-v$(echo "${JULIA_VERSION_ENZYME}" | cut -d. -f1-2).toml
150+
julia +$JULIA_VERSION_ENZYME -O0 --color=yes --project -e 'using Pkg; Pkg.test()'
144151
145152
matrix:
146153
setup:

0 commit comments

Comments
 (0)