Skip to content

Commit

Permalink
Merge pull request #8 from albertodebortoli/improve-workflows
Browse files Browse the repository at this point in the history
Improve workflows
  • Loading branch information
albertodebortoli authored Jul 3, 2023
2 parents 81d1214 + f11b801 commit 0c66e48
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Common steps
name: Set Environment

inputs:
xcode-version:
Expand All @@ -17,15 +17,3 @@ runs:
- name: Check xcodebuild version
run: xcodebuild -version
shell: bash
- name: Check xcode embedded SDKs
run: xcodebuild -showsdks
shell: bash
- name: Show buildable schemes
working-directory: ./
run: xcodebuild -list
shell: bash
- name: Show eligible build destinations
working-directory: ./
run: swift build -c debug
shell: bash

8 changes: 4 additions & 4 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,21 @@ on:
- '**'

env:
SCHEME: 'EC2macConnector'
XCODE_VERSION: '14.3.0'

jobs:
build:
name: Build for debug
runs-on: 'macos-13'
strategy:
fail-fast: false
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Common steps
uses: ./.github/actions/common_steps
- name: Set Environment
uses: ./.github/actions/set_environment
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Build
working-directory: ./
run: xcodebuild build -scheme ${{ env.SCHEME }} -destination "platform=macOS"
run: swift build -c debug
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,15 @@ env:

jobs:
build:
name: Build for release and publish release
runs-on: 'macos-13'
strategy:
fail-fast: false
steps:
- name: Code Checkout
uses: actions/checkout@v3
- name: Common steps
uses: ./.github/actions/common_steps
- name: Set Environment
uses: ./.github/actions/set_environment
with:
xcode-version: ${{ env.XCODE_VERSION }}
- name: Build products for release
Expand Down

0 comments on commit 0c66e48

Please sign in to comment.