Skip to content

Commit 9a67b82

Browse files
committed
Next try
1 parent 80623b2 commit 9a67b82

1 file changed

Lines changed: 22 additions & 10 deletions

File tree

.github/workflows/Test.yml

Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,16 +36,22 @@ jobs:
3636
steps:
3737
- uses: actions/checkout@v6
3838

39-
- name: Use default manifest
40-
run: |
41-
if [ -f Manifest.toml.default ]; then cp Manifest.toml.default Manifest.toml; fi
42-
shell: bash
43-
4439
- uses: julia-actions/setup-julia@v3
4540
with:
4641
version: ${{ matrix.version }}
4742
arch: ${{ matrix.arch }}
4843

44+
- name: Prepare version-specific manifest
45+
shell: bash
46+
run: |
47+
JULIA_VERSION=$(julia --version | awk '{print $3}' | cut -d'.' -f1,2)
48+
DEFAULT="Manifest-v${JULIA_VERSION}.toml.default"
49+
TARGET="Manifest-v${JULIA_VERSION}.toml"
50+
if [ -f "$DEFAULT" ] && [ ! -f "$TARGET" ]; then
51+
cp "$DEFAULT" "$TARGET"
52+
echo "Copied $DEFAULT to $TARGET"
53+
fi
54+
4955
- uses: julia-actions/cache@v3
5056
continue-on-error: true
5157
- uses: julia-actions/julia-buildpkg@v1
@@ -72,16 +78,22 @@ jobs:
7278
steps:
7379
- uses: actions/checkout@v6
7480

75-
- name: Use default manifest
76-
run: |
77-
if [ -f Manifest.toml.default ]; then cp Manifest.toml.default Manifest.toml; fi
78-
shell: bash
79-
8081
- uses: julia-actions/setup-julia@v3
8182
with:
8283
arch: ${{ matrix.julia_arch }}
8384
version: ${{ matrix.julia_version }}
8485

86+
- name: Prepare version-specific manifest
87+
shell: bash
88+
run: |
89+
JULIA_VERSION=$(julia --version | awk '{print $3}' | cut -d'.' -f1,2)
90+
DEFAULT="Manifest-v${JULIA_VERSION}.toml.default"
91+
TARGET="Manifest-v${JULIA_VERSION}.toml"
92+
if [ -f "$DEFAULT" ] && [ ! -f "$TARGET" ]; then
93+
cp "$DEFAULT" "$TARGET"
94+
echo "Copied $DEFAULT to $TARGET"
95+
fi
96+
8597
- uses: julia-actions/cache@v3
8698
continue-on-error: true
8799
- uses: julia-actions/julia-buildpkg@v1

0 commit comments

Comments
 (0)