Skip to content

Commit 0c66e48

Browse files
Merge pull request #8 from albertodebortoli/improve-workflows
Improve workflows
2 parents 81d1214 + f11b801 commit 0c66e48

File tree

3 files changed

+8
-19
lines changed

3 files changed

+8
-19
lines changed
Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Common steps
1+
name: Set Environment
22

33
inputs:
44
xcode-version:
@@ -17,15 +17,3 @@ runs:
1717
- name: Check xcodebuild version
1818
run: xcodebuild -version
1919
shell: bash
20-
- name: Check xcode embedded SDKs
21-
run: xcodebuild -showsdks
22-
shell: bash
23-
- name: Show buildable schemes
24-
working-directory: ./
25-
run: xcodebuild -list
26-
shell: bash
27-
- name: Show eligible build destinations
28-
working-directory: ./
29-
run: swift build -c debug
30-
shell: bash
31-

.github/workflows/pull_request.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,21 @@ on:
99
- '**'
1010

1111
env:
12-
SCHEME: 'EC2macConnector'
1312
XCODE_VERSION: '14.3.0'
1413

1514
jobs:
1615
build:
16+
name: Build for debug
1717
runs-on: 'macos-13'
1818
strategy:
1919
fail-fast: false
2020
steps:
2121
- name: Code Checkout
2222
uses: actions/checkout@v3
23-
- name: Common steps
24-
uses: ./.github/actions/common_steps
23+
- name: Set Environment
24+
uses: ./.github/actions/set_environment
2525
with:
2626
xcode-version: ${{ env.XCODE_VERSION }}
2727
- name: Build
2828
working-directory: ./
29-
run: xcodebuild build -scheme ${{ env.SCHEME }} -destination "platform=macOS"
29+
run: swift build -c debug

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,15 @@ env:
1111

1212
jobs:
1313
build:
14+
name: Build for release and publish release
1415
runs-on: 'macos-13'
1516
strategy:
1617
fail-fast: false
1718
steps:
1819
- name: Code Checkout
1920
uses: actions/checkout@v3
20-
- name: Common steps
21-
uses: ./.github/actions/common_steps
21+
- name: Set Environment
22+
uses: ./.github/actions/set_environment
2223
with:
2324
xcode-version: ${{ env.XCODE_VERSION }}
2425
- name: Build products for release

0 commit comments

Comments
 (0)