Skip to content

Update for gtk-4.14 #43

Update for gtk-4.14

Update for gtk-4.14 #43

Workflow file for this run

name: macOS gtk4
# Dependencies of this package
env:
MACOS_BREW: ${{ 'gtk4 pango glib glib-networking gobject-introspection pkg-config jq' }}
on:
push:
branches:
- gtk4-development
- gtk4
pull_request:
branches:
- gtk4-development
- gtk4
jobs:
# macOS tasks
build-mac-gtk4-swift-latest:
runs-on: macos-12.0
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '13.3'
- name: Print Swift version to confirm
run: swift --version
- name: Run brew update
run: brew update
- name: Upgrade installed packages to current version
run: brew upgrade
continue-on-error: true
- name: Fetch dependencies for general repository
run: brew install $MACOS_BREW
if: ${{ success() || failure() }}
- 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 ..
- name: 'Upload Artefact'
uses: actions/upload-artifact@v2
with:
name: build-artefact-macos-gtk4
path: |
SwiftGdk/Sources/
retention-days: 1