Skip to content

Commit d1ba2c1

Browse files
authored
Merge pull request #1 from CuriositySoftware/add_ci
Add GitHubAction to test the project each time it is Pull Requested
2 parents f900ddb + 45cb65c commit d1ba2c1

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build and Test
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
pull_request:
7+
branches: [ "main" ]
8+
workflow_dispatch:
9+
10+
jobs:
11+
build:
12+
name: Build and Test using any available macOS
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
os: [macos-latest]
17+
xcode: [latest-stable]
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v3
22+
23+
- name: Build
24+
env:
25+
scheme: ${{ 'XcodeTargetGraphGen' }}
26+
platform: ${{ 'macOS' }}
27+
run: |
28+
xcodebuild build-for-testing -scheme "$scheme" -destination "platform=$platform"
29+
30+
- name: Test
31+
env:
32+
scheme: ${{ 'XcodeTargetGraphGen' }}
33+
platform: ${{ 'macOS' }}
34+
run: |
35+
xcodebuild test-without-building -scheme "$scheme" -destination "platform=$platform"

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import PackageDescription
66
let package = Package(
77
name: "XcodeTargetGraphGen",
88
platforms: [
9-
.macOS(.v13)
9+
.macOS(.v12)
1010
],
1111
products: [
1212
.executable(name: "xcgraphgen", targets: ["XcodeTargetGraphGen"])

0 commit comments

Comments
 (0)