Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
82 changes: 43 additions & 39 deletions .github/workflows/XcodeGraph.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ name: XcodeGraph
on:
push:
branches:
- '**'
- "**"
tags-ignore:
- '**'
- "**"
paths:
- '**/*.swift'
- '.github/workflows/*.yml'
- "**/*.swift"
- ".github/workflows/*.yml"
pull_request:
paths:
- '**/*.swift'
- '.github/workflows/*.yml'
- "**/*.swift"
- ".github/workflows/*.yml"

concurrency:
group: XcodeGraph-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MISE_EXPERIMENTAL: 1
TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
TUIST_CONFIG_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}

jobs:
spm_build:
Expand All @@ -28,52 +28,54 @@ jobs:
matrix:
os:
- ubuntu-22.04
- macOS-13
- macos-14
swift-version:
- '5.9'
- "5.9"
swift-compat-ver:
- '5'
- "5"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
# DEBUG mode
- name: Build with debug mode.
id: debug_build
run: swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
continue-on-error: true
- name: Retry build with debug mode if necessary
if: steps.debug_build.outcome == 'failure'
run: |
swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
# RELEASE mode
- name: Build with release mode.
id: release_build
run: swift build --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
continue-on-error: true
- name: Retry build with release mode if necessary
if: steps.release_build.outcome == 'failure'
run: |
swift build --configuration release -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
# DEBUG mode
- name: Build with debug mode.
id: debug_build
run: swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
continue-on-error: true
- name: Retry build with debug mode if necessary
if: steps.debug_build.outcome == 'failure'
run: |
swift build --configuration debug -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
# RELEASE mode
- name: Build with release mode.
id: release_build
run: swift build --configuration release -Xswiftc -enable-testing -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
continue-on-error: true
- name: Retry build with release mode if necessary
if: steps.release_build.outcome == 'failure'
run: |
swift build --configuration release -Xswiftc -swift-version -Xswiftc ${{ matrix.swift-compat-ver }}
tuist_build:
name: Tuist Build
strategy:
matrix:
os:
- macOS-13
- macos-14
swift-version:
- '5.9'
- "5.9"
swift-compat-ver:
- '5'
- "5"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
- uses: jdx/mise-action@v2
with:
version: 2024.11.8
- name: Install dependencies
run: tuist install
- name: Build
Expand All @@ -83,17 +85,19 @@ jobs:
strategy:
matrix:
os:
- macOS-13
- macos-14
swift-version:
- '5.9'
- "5.9"
swift-compat-ver:
- '5'
- "5"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
- uses: jdx/mise-action@v2
with:
version: 2024.11.8
- name: Lint
run: mise run lint
run: mise run lint
22 changes: 12 additions & 10 deletions .github/workflows/cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,42 @@ on:
branches:
- main
paths:
- '**/*.swift'
- '.github/workflows/*.yml'
- "**/*.swift"
- ".github/workflows/*.yml"
pull_request:
paths:
- '**/*.swift'
- '.github/workflows/*.yml'
- "**/*.swift"
- ".github/workflows/*.yml"

concurrency:
group: Cache-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

env:
MISE_EXPERIMENTAL: 1
TUIST_CONFIG_CLOUD_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}
TUIST_CONFIG_TOKEN: ${{ secrets.TUIST_CONFIG_CLOUD_TOKEN }}

jobs:
warm:
name: Warm
strategy:
matrix:
os:
- macOS-13
- macOS-14
swift-version:
- '5.9'
- "5.9"
swift-compat-ver:
- '5'
- "5"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: SwiftyLab/setup-swift@latest
with:
swift-version: ${{ matrix.swift-version }}
- uses: jdx/mise-action@v2
with:
version: 2024.11.8
- name: Install dependencies
run: tuist install
- name: Build
run: tuist cache
run: tuist cache
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
- uses: jdx/mise-action@v2
with:
experimental: true
version: 2024.11.8
- name: Check if there are releasable changes
id: is-releasable
run: |
Expand Down
2 changes: 1 addition & 1 deletion .mise.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
tuist = "4.34.0"
swiftlint = "0.54.0"
swiftformat = "0.53.3"
"git-cliff" = "2.4.0"
"git-cliff" = "2.6.1"
2 changes: 1 addition & 1 deletion Sources/XcodeGraph/Graph/GraphTarget.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public struct GraphTarget: Equatable, Hashable, Comparable, CustomDebugStringCon
public static func test(
path: AbsolutePath = .root,
target: Target = .test(),
project: Project = .test()
project: Project = .test(type: .local)
) -> GraphTarget {
GraphTarget(
path: path,
Expand Down
Loading