Skip to content

Commit 4ef82e9

Browse files
Fix mise cache prepare in CI for macOS (#309)
C++ solver is used also on macOS currently.
1 parent 5fa562d commit 4ef82e9

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

  • .github/actions/mise-project-setup

.github/actions/mise-project-setup/init.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,11 +104,13 @@ echo "::group::Outputs from init"
104104
if [[ "${CACHE_MODE}" = "prepare" ]]; then
105105
echo "aoc-main"
106106
# Use of mise tools in CI on different OSes for solvers:
107-
# - C++: Ubuntu
107+
# - C++: macOS and Ubuntu
108108
# - Python: Ubuntu
109-
# - Rust: Ubuntu, Windows and macOS
110-
if [[ "${RUNNER_OS}" = "Linux" ]]; then
109+
# - Rust: macOS, Ubuntu and Windows
110+
if [[ "${RUNNER_OS}" = "macOS" ]] || [[ "${RUNNER_OS}" = "Linux" ]]; then
111111
echo "solvers/cpp"
112+
fi
113+
if [[ "${RUNNER_OS}" = "Linux" ]]; then
112114
echo "solvers/python"
113115
fi
114116
echo "solvers/rust"

0 commit comments

Comments
 (0)