Skip to content
Draft
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
33 changes: 23 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will build a Swift project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-swift

name: CI
name: "steelyard CI"

on:
push:
Expand All @@ -12,20 +12,33 @@ on:
- '*'
workflow_dispatch:

concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true

jobs:
build:
macOS:
name: ${{ matrix.name }}
runs-on: ${{ matrix.runsOn }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
macos:
- 13
xcode:
- latest-stable
runs-on: macos-${{ matrix.macos }}
steps:
include:
- xcode: latest
runsOn: macos-13
name: "macOS 13, Xcode latest"
- xcode: latest-stable
runsOn: macos-13
name: "macOS 13, Xcode latest-stable"
- xcode: "15.0"
runsOn: macos-13
name: "macOS 13, Xcode 15.0, Swift 5.9.0"
steps:
- uses: actions/checkout@v4
- name: Setup Xcode version
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode }}
- name: Build
run: swift build -v
- name: ${{ matrix.name }}
run: swift build -v
67 changes: 1 addition & 66 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Xcode
#
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore

.DS_Store
.swiftpm/
Expand All @@ -9,23 +7,6 @@
## User settings
xcuserdata/

## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
*.xcscmblueprint
*.xccheckout

## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
build/
DerivedData/
*.moved-aside
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3

## Obj-C/Swift specific
*.hmap

Expand All @@ -39,56 +20,10 @@ timeline.xctimeline
playground.xcworkspace

# Swift Package Manager
#
# Add this line if you want to avoid checking in source code from Swift Package Manager dependencies.
# Packages/
# Package.pins
Packages/**/Package.resolved
# *.xcodeproj
#
# Xcode automatically generates this directory with a .xcworkspacedata file and xcuserdata
# hence it is not needed unless you have added a package configuration file to your project
# .swiftpm

.build/

# CocoaPods
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# Pods/
#
# Add this line if you want to avoid checking in source code from the Xcode workspace
# *.xcworkspace

# Carthage
#
# Add this line if you want to avoid checking in source code from Carthage dependencies.
# Carthage/Checkouts

Carthage/Build/

# Accio dependency management
Dependencies/
.accio/

# fastlane
#
# It is recommended to not store the screenshots in the git repo.
# Instead, use fastlane to re-generate the screenshots whenever they are needed.
# For more information about the recommended setup visit:
# https://docs.fastlane.tools/best-practices/source-control/#source-control

fastlane/report.xml
fastlane/Preview.html
fastlane/screenshots/**/*.png
fastlane/test_output

# Code Injection
#
# After new code Injection tools there's a generated folder /iOSInjectionProject
# https://github.com/johnno1962/injectionforxcode

iOSInjectionProject/
fastlane/test_output
62 changes: 62 additions & 0 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

42 changes: 22 additions & 20 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,46 @@ import PackageDescription
let package = Package(
name: "steelyard",
platforms: [
.macOS(.v13),
.macOS(.v14),
],
products: [
.executable(name: "steelyard", targets: ["SteelyardCommand"]),
.executable(name: "steelyard", targets: ["Steelyard"]),
],
dependencies: [
.package(path: "Packages/AppStoreConnect"),
.package(path: "Packages/Console"),
.package(path: "Packages/CommandLine"),
.package(path: "Packages/Platform"),
.package(url: "https://github.com/mcrollin/SteelyardCore.git", branch: "c9c53b47d776479e04680912f06822d018cd201c"),
.package(url: "https://github.com/apple/swift-argument-parser.git", .upToNextMajor(from: "1.2.0")),
.package(url: "https://github.com/onevcat/Rainbow", .upToNextMajor(from: "4.0.0")),
],
targets: [
.target(
name: "AppSizeFetcher",
.executableTarget(
name: "Steelyard",
dependencies: [
.product(name: "AppStoreConnect", package: "AppStoreConnect"),
.product(name: "Console", package: "Console"),
.product(name: "CommandLine", package: "CommandLine"),
.product(name: "Platform", package: "Platform"),
.target(name: "Archive"),
.target(name: "History"),
]
),
.target(
name: "DataCommand",
name: "Archive",
dependencies: [
.target(name: "AppSizeFetcher"),
.target(name: "CommandLine"),
.product(name: "ApplicationArchive", package: "SteelyardCore"),
.product(name: "DesignComponents", package: "SteelyardCore"),
.product(name: "Platform", package: "SteelyardCore"),
]
),
.target(
name: "GraphCommand",
name: "CommandLine",
dependencies: [
.target(name: "AppSizeFetcher"),
.product(name: "ArgumentParser", package: "swift-argument-parser"),
.product(name: "Rainbow", package: "Rainbow"),
]
),
.executableTarget(
name: "SteelyardCommand",
.target(
name: "History",
dependencies: [
.target(name: "DataCommand"),
.target(name: "GraphCommand"),
.target(name: "CommandLine"),
.product(name: "AppStoreConnect", package: "SteelyardCore"),
.product(name: "Platform", package: "SteelyardCore"),
]
),
]
Expand Down
38 changes: 0 additions & 38 deletions Packages/AppStoreConnect/Package.swift

This file was deleted.

Loading