Skip to content

Commit

Permalink
Reenable macOS CI builds, using macOS 12 and Xcode 13.4 (#484)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezraberch authored May 24, 2022
1 parent 2ba5488 commit 2e7f561
Showing 1 changed file with 54 additions and 55 deletions.
109 changes: 54 additions & 55 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,61 +24,60 @@ jobs:
with:
shell-action: carton test --environment node

# Disabled until macos-12 is available on GitHub Actions, which is required for Xcode 13.3
# core_macos_build:
# runs-on: macos-11

# steps:
# - uses: actions/checkout@v2
# - name: Run the test suite on macOS, build the demo project for iOS
# shell: bash
# run: |
# set -ex
# sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/
# # avoid building unrelated products for testing by specifying the test product explicitly
# swift build --product TokamakPackageTests
# `xcrun --find xctest` .build/debug/TokamakPackageTests.xctest ||
# (cp -r /var/folders/*/*/*/*Tests . ; exit 1)

# rm -rf Sources/TokamakGTKCHelpers/*.c

# xcodebuild -version

# # Make sure Tokamak can be built on macOS so that Xcode autocomplete works.
# # Disable macOS builds until Monterey is available on GHA.
# # xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \
# # CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \
# # xcpretty --color

# cd "NativeDemo"
# xcodebuild -scheme iOS -destination 'generic/platform=iOS' \
# CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \
# xcpretty --color
# cd ..

# ./benchmark.sh

# - name: Upload failed snapshots
# uses: actions/upload-artifact@v2
# if: ${{ failure() }}
# with:
# name: Failed snapshots
# path: '*Tests'

# gtk_macos_build:
# runs-on: macos-11

# steps:
# - uses: actions/checkout@v2
# - name: Build the GTK renderer on macOS
# shell: bash
# run: |
# set -ex
# sudo xcode-select --switch /Applications/Xcode_13.0.app/Contents/Developer/

# brew install gtk+3

# make build
core_macos_build:
runs-on: macos-12

steps:
- uses: actions/checkout@v2
- name: Run the test suite on macOS, build the demo project for iOS
shell: bash
run: |
set -ex
sudo xcode-select --switch /Applications/Xcode_13.4.app/Contents/Developer/
# avoid building unrelated products for testing by specifying the test product explicitly
swift build --product TokamakPackageTests
`xcrun --find xctest` .build/debug/TokamakPackageTests.xctest ||
(cp -r /var/folders/*/*/*/*Tests . ; exit 1)
rm -rf Sources/TokamakGTKCHelpers/*.c
xcodebuild -version
# Make sure Tokamak can be built on macOS so that Xcode autocomplete works.
# Disable macOS builds until Monterey is available on GHA.
# xcodebuild -scheme TokamakDemo -destination 'generic/platform=macOS' \
# CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \
# xcpretty --color
cd "NativeDemo"
xcodebuild -scheme iOS -destination 'generic/platform=iOS' \
CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGNING_ALLOWED=NO | \
xcpretty --color
cd ..
./benchmark.sh
- name: Upload failed snapshots
uses: actions/upload-artifact@v2
if: ${{ failure() }}
with:
name: Failed snapshots
path: '*Tests'

gtk_macos_build:
runs-on: macos-12

steps:
- uses: actions/checkout@v2
- name: Build the GTK renderer on macOS
shell: bash
run: |
set -ex
sudo xcode-select --switch /Applications/Xcode_13.4.app/Contents/Developer/
brew install gtk+3
make build
gtk_ubuntu_18_04_build:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 2e7f561

Please sign in to comment.