Skip to content

Commit

Permalink
refactor: use swift package manager
Browse files Browse the repository at this point in the history
  • Loading branch information
WingLim committed May 21, 2021
1 parent 9337514 commit 40e7449
Show file tree
Hide file tree
Showing 11 changed files with 19 additions and 332 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
version: "12"

- name: Build binary
run: xcodebuild archive -scheme ${PROGRAM} -archivePath build
run: swift build -c release

- name: Set version
id: version
Expand All @@ -40,7 +40,7 @@ jobs:
dir=${PROGRAM}-Release-${{ steps.version.outputs.tag }}
echo ::set-output name=filename::${dir}
mkdir ${dir}
cp build.xcarchive/Products/${PROGRAM} ${dir}
cp .build/release/${PROGRAM} ${dir}
cp scripts/* ${dir}
zip -r ${dir}.zip ${dir}
Expand Down
10 changes: 5 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,14 @@ 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
# Package.resolved
# *.xcodeproj
Packages/
Package.pins
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
.swiftpm

.build/

Expand Down
310 changes: 0 additions & 310 deletions MicFix.xcodeproj/project.pbxproj

This file was deleted.

7 changes: 0 additions & 7 deletions MicFix.xcodeproj/project.xcworkspace/contents.xcworkspacedata

This file was deleted.

This file was deleted.

12 changes: 12 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// swift-tools-version:5.4

import PackageDescription

let package = Package(
name: "MicFix",
targets: [
.executableTarget(
name: "MicFix"
)
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 40e7449

Please sign in to comment.