Skip to content

Update for gtk-4.14 #101

Update for gtk-4.14

Update for gtk-4.14 #101

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-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: 'latest'
- 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 SwiftGtk
uses: actions/checkout@v2
with:
ref: gtk4
path: SwiftGtk
- name: Build Swift Wrappers
run: |
cd SwiftGtk
./run-gir2swift.sh
echo "GIR2SWIFT_PATH=${PWD}/checkouts/gir2swift/.build/release/gir2swift" >> $GITHUB_ENV
cd ..
- name: Build SwiftGtk
run: |
cd SwiftGtk
swift build -Xswiftc -suppress-warnings `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Test SwiftGtk
run: |
cd SwiftGtk
swift test -Xswiftc -suppress-warnings `./run-gir2swift.sh flags -noUpdate`
cd ..
- name: Remove unneeded files and archive artefacts
run: |
cd SwiftGtk
swift package clean
rm -rf .build/repositories
cd ..