mirror of
https://github.com/HarbourMasters/2ship2harkinian.git
synced 2024-11-27 00:00:32 +00:00
Fix installed macports detection for github runner (#821)
This commit is contained in:
parent
207df24ffd
commit
c2ec2f2cc3
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@ -192,15 +192,17 @@ jobs:
|
|||||||
key: ${{ runner.os }}-14-macports-${{ hashFiles('.github/workflows/macports-deps.txt') }}
|
key: ${{ runner.os }}-14-macports-${{ hashFiles('.github/workflows/macports-deps.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-14-macports-
|
${{ runner.os }}-14-macports-
|
||||||
|
# Updated PATH applies to the next step and onwards
|
||||||
- name: Install MacPorts (if necessary)
|
- name: Install MacPorts (if necessary)
|
||||||
run: |
|
run: |
|
||||||
if [ command -v port &>/dev/null ]; then
|
if command -v /opt/local/bin/port 2>&1 >/dev/null; then
|
||||||
echo "MacPorts already installed"
|
echo "MacPorts already installed"
|
||||||
else
|
else
|
||||||
|
echo "Installing MacPorts"
|
||||||
wget https://github.com/macports/macports-base/releases/download/v2.9.3/MacPorts-2.9.3-14-Sonoma.pkg
|
wget https://github.com/macports/macports-base/releases/download/v2.9.3/MacPorts-2.9.3-14-Sonoma.pkg
|
||||||
sudo installer -pkg ./MacPorts-2.9.3-14-Sonoma.pkg -target /
|
sudo installer -pkg ./MacPorts-2.9.3-14-Sonoma.pkg -target /
|
||||||
fi
|
fi
|
||||||
echo "/opt/local/bin:/opt/local/sbin" >> $GITHUB_PATH
|
echo "/opt/local/bin:/opt/local/sbin" >> "$GITHUB_PATH"
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
brew uninstall --ignore-dependencies libpng
|
brew uninstall --ignore-dependencies libpng
|
||||||
|
Loading…
Reference in New Issue
Block a user