Register newline state. #7
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 | |
# Dependencies of this package | |
env: | |
MACOS_BREW: ${{ 'libxml2 gobject-introspection' }} | |
on: | |
push: | |
branches: | |
- development | |
- main | |
pull_request: | |
branches: | |
- development | |
- main | |
jobs: | |
build-macos: | |
strategy: | |
matrix: | |
os: [macos-14, macos-13] | |
name: macOS version ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: maxim-lobanov/setup-xcode@v1 | |
with: | |
xcode-version: latest | |
- name: Print macOS and Swift version | |
run: | | |
uname -a | |
swift --version | |
- name: Fetch macOS dependencies | |
run: | | |
brew install python@3 || brew link --overwrite python@3 | |
brew install $MACOS_BREW | |
mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig || sudo mv /Library/Developer/CommandLineTools /Library/Developer/CommandLineTools.orig | |
- name: Checkout gir2swift | |
uses: actions/checkout@v4 | |
with: | |
path: gir2swift | |
- name: Build gir2swift | |
run: | | |
cd gir2swift | |
swift build | |
cd .. | |
- name: Test gir2swift | |
run: | | |
cd gir2swift | |
swift test | |
cd .. | |
- name: Remove unneeded files and archive artefacts | |
run: | | |
rm -rf _tempGTK | |
cd gir2swift | |
swift package clean | |
rm -rf .build/repositories | |
cd .. |