Handle special-case constants. #6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: macOS 12 | |
# Dependencies of this package | |
env: | |
MACOS_BREW: ${{ 'gtk+3 pango glib glib-networking gobject-introspection pkg-config jq' }} | |
on: | |
push: | |
branches: | |
- development | |
- main | |
pull_request: | |
branches: | |
- development | |
- main | |
jobs: | |
# macOS tasks | |
build-mac-monterey-latest: | |
runs-on: macos-12.0 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: '13.3.1' | |
- name: Print Swift version to confirm | |
run: swift --version | |
- name: Fetch dependencies for general repository | |
run: brew install $MACOS_BREW | |
- name: Checkout SwiftGdk | |
uses: actions/checkout@v2 | |
with: | |
path: SwiftGdk | |
- name: Build SwiftGdk | |
run: | | |
cd SwiftGdk | |
swift build | |
cd .. | |
- name: Test SwiftGdk | |
run: | | |
cd SwiftGdk | |
swift test | |
cd .. | |
- name: Remove unneeded files and archive artefacts | |
run: | | |
cd SwiftGdk | |
swift package clean | |
rm -rf .build/repositories | |
cd .. |