Skip to content

Commit

Permalink
Merge pull request #41 from akkyie/use-github-actions
Browse files Browse the repository at this point in the history
Use GitHub Actions
  • Loading branch information
akkyie authored Aug 20, 2021
2 parents b43b194 + 2ccd4e6 commit ffbccdf
Show file tree
Hide file tree
Showing 3 changed files with 101 additions and 42 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Test

on: push

jobs:
test_xcode:
strategy:
matrix:
include:
- os: macos-latest
swift: "~5.3"
- os: macos-11
swift: "~5.4"
- os: macos-11
swift: "~5.5"
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- run: make lint/xcode
- uses: mxcl/xcodebuild@v1
with:
swift: ${{ matrix.swift }}

test-spm:
strategy:
matrix:
swift: ["5.3", "5.4"]
runs-on: ubuntu-latest
container:
image: swift:${{ matrix.swift }}
steps:
- uses: actions/checkout@v2
- run: make test/spm
12 changes: 1 addition & 11 deletions Tablier.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
OBJ_28 /* Configs */ = {isa = PBXFileReference; lastKnownFileType = folder; path = Configs; sourceTree = SOURCE_ROOT; };
OBJ_6 /* Package.swift */ = {isa = PBXFileReference; explicitFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
OBJ_8 /* SwiftPM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = SwiftPM.xcconfig; path = Configs/SwiftPM.xcconfig; sourceTree = "<group>"; };
"Tablier::Tablier::Product" /* Tablier.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; path = Tablier.framework; sourceTree = BUILT_PRODUCTS_DIR; };
"Tablier::Tablier::Product" /* Tablier.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Tablier.framework; sourceTree = BUILT_PRODUCTS_DIR; };
"Tablier::TablierTests::Product" /* TablierTests.xctest */ = {isa = PBXFileReference; lastKnownFileType = file; path = TablierTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */

Expand Down Expand Up @@ -347,13 +347,8 @@
baseConfigurationReference = OBJ_8 /* SwiftPM.xcconfig */;
buildSettings = {
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
);
HEADER_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Tablier.xcodeproj/Tablier_Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand All @@ -372,13 +367,8 @@
baseConfigurationReference = OBJ_8 /* SwiftPM.xcconfig */;
buildSettings = {
ENABLE_TESTABILITY = YES;
FRAMEWORK_SEARCH_PATHS = (
"$(inherited)",
"$(PLATFORM_DIR)/Developer/Library/Frameworks",
);
HEADER_SEARCH_PATHS = "$(inherited)";
INFOPLIST_FILE = Tablier.xcodeproj/Tablier_Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) $(TOOLCHAIN_DIR)/usr/lib/swift/macosx";
OTHER_CFLAGS = "$(inherited)";
OTHER_LDFLAGS = "$(inherited)";
OTHER_SWIFT_FLAGS = "$(inherited)";
Expand Down
98 changes: 67 additions & 31 deletions Tablier.xcodeproj/xcshareddata/xcschemes/Tablier-Package.xcscheme
Original file line number Diff line number Diff line change
@@ -1,33 +1,69 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme LastUpgradeVersion = "9999" version = "1.3">
<BuildAction parallelizeBuildables = "YES" buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry buildForTesting = "YES" buildForRunning = "YES" buildForProfiling = "YES" buildForArchiving = "YES" buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'lib$(TARGET_NAME)'"
BlueprintName = "Tablier"
ReferencedContainer = "container:Tablier.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BuildableName = "'$(TARGET_NAME)'"
BlueprintName = "TablierTests"
ReferencedContainer = "container:Tablier.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<Scheme
LastUpgradeVersion = "9999"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Tablier::Tablier"
BuildableName = "Tablier.framework"
BlueprintName = "Tablier"
ReferencedContainer = "container:Tablier.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES"
codeCoverageEnabled = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "Tablier::TablierTests"
BuildableName = "TablierTests.xctest"
BlueprintName = "TablierTests"
ReferencedContainer = "container:Tablier.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

0 comments on commit ffbccdf

Please sign in to comment.