From 53176bbe2ce2734142e4ccaa463a83921795ef14 Mon Sep 17 00:00:00 2001 From: Roger Qiu Date: Wed, 17 May 2023 23:53:58 +1000 Subject: [PATCH] fix: macos now overrides the PATH with the `rustup` installed rust and cargo in `~/.cargo/bin` --- .gitlab-ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 055d333c..92718543 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -217,6 +217,9 @@ build:macos: - hash -r - npm install --ignore-scripts - export PATH="$(npm root)/.bin:$PATH" + # Gitlab MacOS already has rust installed + # This will override the system installed rust + - export PATH="$HOME/.cargo/bin:$PATH" # Build x64 and arm64 separately - npm run prebuild --verbose -- --arch x64 --production - npm run prebuild --verbose -- --arch arm64 --production