Skip to content

Commit

Permalink
Update CI
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Oct 2, 2023
1 parent f1378e4 commit 9c5a8e5
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 4 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/build-swiftpm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build Example

on:
workflow_dispatch:
workflow_call:

concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true

jobs:

build:

runs-on: macOS-13

name: Package build

steps:
- uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -switch /Applications/Xcode_15.0.app && /usr/bin/xcodebuild -version

- name: Build and run tests
run: xcodebuild clean build -skipPackagePluginValidation -scheme OversizeComponents -destination 'platform=iOS Simulator,name=iPhone 14 Pro,OS=16.4' | xcpretty && exit ${PIPESTATUS[0]}

8 changes: 4 additions & 4 deletions .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Bump version
on:
push:
branches:
- main
workflow_dispatch:
workflow_call:

jobs:

tag:
Expand All @@ -14,7 +14,7 @@ jobs:
fetch-depth: '0'

- name: Bump version and push tag
uses: anothrNick/github-tag-action@1.61.0
uses: anothrNick/github-tag-action@master
env:
GITHUB_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
WITH_V: false
20 changes: 20 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: CI - Push

on:
push:
branches: ["main"]
workflow_dispatch:

jobs:

build-swiftpm:
name: Build SwiftPM
uses: ./.github/workflows/build-swiftpm.yml
secrets: inherit

bump:
name: Bump version
needs: build-swiftpm
uses: ./.github/workflows/bump.yml
secrets: inherit

0 comments on commit 9c5a8e5

Please sign in to comment.