mirror of
https://github.com/yonaskolb/XcodeGen.git
synced 2026-03-18 20:02:25 +00:00
6c94e2975f
* Support Xcode 16 on GitHub Action * Fix Xcode version * provide GITHUB_ACCESS_TOKEN for carthage --------- Co-authored-by: Kohki Miki <kohki.miki@linecorp.com> Co-authored-by: Yonas Kolb <yonaskolb@users.noreply.github.com>
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
name: CI
|
|
on:
|
|
push: {}
|
|
pull_request: {}
|
|
jobs:
|
|
run:
|
|
runs-on: ${{ matrix.macos }}
|
|
name: Xcode ${{ matrix.xcode }}
|
|
strategy:
|
|
matrix:
|
|
xcode: ["15.4", "16.0"]
|
|
include:
|
|
- xcode: "15.4"
|
|
macos: macos-15
|
|
- xcode: "16.0"
|
|
macos: macos-15
|
|
env:
|
|
DEVELOPER_DIR: /Applications/Xcode_${{ matrix.xcode }}.app/Contents/Developer
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Resolve
|
|
run: swift package resolve
|
|
- name: Build
|
|
run: swift build
|
|
- name: Test
|
|
run: set -o pipefail && swift test 2>&1 | xcpretty
|
|
- name: Gen fixtures
|
|
run: scripts/gen-fixtures.sh
|
|
- name: Check fixtures
|
|
run: scripts/diff-fixtures.sh
|
|
- name: Build fixtures
|
|
env:
|
|
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: scripts/build-fixtures.sh
|
|
run-linux:
|
|
runs-on: ubuntu-latest
|
|
name: Linux
|
|
steps:
|
|
- uses: actions/checkout@master
|
|
- name: Build and run tests
|
|
run: swift test --enable-test-discovery
|