Skip to content

Commit

Permalink
update github action
Browse files Browse the repository at this point in the history
  • Loading branch information
foxdock committed Sep 28, 2024
1 parent 17d63ec commit afc5eab
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# https://github.com/googleapis/release-please-action
# https://docs.github.com/en/actions/writing-workflows/quickstart

on:
push:
branches:
Expand All @@ -17,4 +20,10 @@ jobs:
with:
release-type: simple
bump-minor-pre-major: true
bump-patch-for-minor-pre-major: true
bump-patch-for-minor-pre-major: true

## release xcframework
# xcodebuild -create-xcframework -archive archives/DFService-iOS.xcarchive -framework DFService.framework
# -archive archives/DFService-iOS_Simulator.xcarchive -framework DFService.framework
# -archive archives/DFService-macOS.xcarchive -framework DFService.framework
# -archive archives/DFService-Mac_Catalyst.xcarchive -framework DFService.framework -output xcframeworks/DFService.xcframework
11 changes: 6 additions & 5 deletions .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: Swift

on:
push:
branches: [ "main" ]
branches: [ $default-branch ]
pull_request:
branches: [ "main" ]
branches: [ $default-branch ]

jobs:
build:
Expand All @@ -32,6 +32,7 @@ jobs:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4

- name: Run tests on ${{ matrix.platform }}
run: ${{ matrix.test_cmd }} -destination ${{ matrix.destination }}
- name: Build
run: swift build -v
- name: Run tests
run: swift test -v

0 comments on commit afc5eab

Please sign in to comment.