Skip to content

Commit

Permalink
Use macos-12 runner and Xcode 13.1 when building iOS targets (#55)
Browse files Browse the repository at this point in the history
* Use Xcode 13.1 when building iOS targets

* Use macos-12 runner for iOS targets so Xcode 13 is available

* fix
  • Loading branch information
eymar authored Sep 25, 2024
1 parent d6a9337 commit e287d4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ on:
default: 'false'

env:
version: m126-d2aaacc35d-2
version: m126-d2aaacc35d-4

jobs:
macos:
runs-on: ${{ fromJson('{"macos":"macos-13","ios":"macos-13","iosSim":"macos-13","tvos":"macos-13","tvosSim":"macos-13"}')[matrix.target] }}
runs-on: ${{ fromJson('{"macos":"macos-13","ios":"macos-12","iosSim":"macos-12","tvos":"macos-13","tvosSim":"macos-13"}')[matrix.target] }}
strategy:
matrix:
target: ["macos", "ios", "iosSim", "tvos", "tvosSim"]
Expand All @@ -33,9 +33,9 @@ jobs:
if: ${{ github.event.inputs.skip_release != 'true' && github.ref == 'refs/heads/main' }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Select Xcode 14.3.1 for iOS targets
run: sudo xcode-select -s /Applications/Xcode_14.3.1.app
if: ${{ matrix.target }} == 'ios' || ${{ matrix.target }} == 'iosSim'
- name: Select Xcode 13.1 for iOS targets
if: ${{ matrix.target == 'ios' || matrix.target == 'iosSim' }}
run: sudo xcode-select -s /Applications/Xcode_13.1.app
- name: Print Xcode version
run: xcodebuild -version
- run: python3 script/checkout.py --version ${{ env.version }}
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ Prebuilt binaries can be found [in releases](https://github.com/JetBrains/skia-p
## Building locally

```sh
python3 script/checkout.py --version m126-d2aaacc35d-2
python3 script/checkout.py --version m126-d2aaacc35d-4
python3 script/build.py
python3 script/archive.py --version m126-d2aaacc35d-2
python3 script/archive.py --version m126-d2aaacc35d-4
```

To build a debug build:

```sh
python3 script/checkout.py --version m126-d2aaacc35d-2
python3 script/checkout.py --version m126-d2aaacc35d-4
python3 script/build.py --build-type Debug
python3 script/archive.py --version m126-d2aaacc35d-2 --build-type Debug
python3 script/archive.py --version m126-d2aaacc35d-4 --build-type Debug
```

0 comments on commit e287d4c

Please sign in to comment.