Skip to content

Update Workspace

Update Workspace #1837

Workflow file for this run

# macOS.yaml
#
# This source file is part of the SDGSwift open source project.
# https://sdggiesbrecht.github.io/SDGSwift
#
# Copyright ©2023–2024 Jeremy David Giesbrecht and the SDGSwift project contributors.
#
# Soli Deo gloria.
#
# Licensed under the Apache Licence, Version 2.0.
# See http://www.apache.org/licenses/LICENSE-2.0 for licence information.
name: macOS
on: [push, pull_request]
jobs:
macOS:
name: macOS
runs-on: macos-13
steps:
- name: Check out
uses: actions/checkout@v3
- name: Cache Workspace
uses: actions/cache@v3
with:
key: macOS‐${{ hashFiles('.github/workflows/**') }}
path: .build/SDG/Workspace
- name: Set Xcode up
shell: bash
run: |
set -x
sudo xcode-select -switch /Applications/Xcode_14.3.app
defaults write com.apple.dt.Xcode IDESkipPackagePluginFingerprintValidatation -bool YES
xcodebuild -version
swift --version
- name: Install Workspace
shell: bash
run: |
set -x
if workspace version > /dev/null 2>&1 ; then
echo "Using system install of Workspace..."
workspace version •language '🇨🇦EN' •use‐version 0.44.1
elif .build/SDG/Workspace/workspace version > /dev/null 2>&1 ; then
echo "Using repository cache of Workspace..."
.build/SDG/Workspace/workspace version •language '🇨🇦EN' •use‐version 0.44.1
else
echo "No cached build detected; fetching Workspace..."
export OVERRIDE_INSTALLATION_DIRECTORY=.build/SDG
curl -sL https://gist.github.com/SDGGiesbrecht/4d76ad2f2b9c7bf9072ca1da9815d7e2/raw/update.sh | bash -s Workspace "https://github.com/SDGGiesbrecht/Workspace" 0.44.1 "" workspace
.build/SDG/Workspace/workspace version •language '🇨🇦EN' •use‐version 0.44.1
fi
- name: Refresh
shell: bash
run: |
set -x
if workspace version > /dev/null 2>&1 ; then
echo "Using system install of Workspace..."
workspace refresh •language '🇨🇦EN' •use‐version 0.44.1
elif .build/SDG/Workspace/workspace version > /dev/null 2>&1 ; then
echo "Using repository cache of Workspace..."
.build/SDG/Workspace/workspace refresh •language '🇨🇦EN' •use‐version 0.44.1
else
echo "No cached build detected; fetching Workspace..."
export OVERRIDE_INSTALLATION_DIRECTORY=.build/SDG
curl -sL https://gist.github.com/SDGGiesbrecht/4d76ad2f2b9c7bf9072ca1da9815d7e2/raw/update.sh | bash -s Workspace "https://github.com/SDGGiesbrecht/Workspace" 0.44.1 "" workspace
.build/SDG/Workspace/workspace refresh •language '🇨🇦EN' •use‐version 0.44.1
fi
- name: Validate
shell: bash
run: |
set -x
if workspace version > /dev/null 2>&1 ; then
echo "Using system install of Workspace..."
workspace validate •job macos •language '🇨🇦EN' •use‐version 0.44.1
elif .build/SDG/Workspace/workspace version > /dev/null 2>&1 ; then
echo "Using repository cache of Workspace..."
.build/SDG/Workspace/workspace validate •job macos •language '🇨🇦EN' •use‐version 0.44.1
else
echo "No cached build detected; fetching Workspace..."
export OVERRIDE_INSTALLATION_DIRECTORY=.build/SDG
curl -sL https://gist.github.com/SDGGiesbrecht/4d76ad2f2b9c7bf9072ca1da9815d7e2/raw/update.sh | bash -s Workspace "https://github.com/SDGGiesbrecht/Workspace" 0.44.1 "" workspace
.build/SDG/Workspace/workspace validate •job macos •language '🇨🇦EN' •use‐version 0.44.1
fi