Skip to content

Commit

Permalink
Merge pull request #77 from tesseract-one/master
Browse files Browse the repository at this point in the history
SPM-compatible project structure. Linux support. Better podfile. CocoaPods deploy action
  • Loading branch information
mkrd authored Aug 12, 2023
2 parents 4a8475a + 97806d9 commit f98947c
Show file tree
Hide file tree
Showing 65 changed files with 895 additions and 1,915 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build & Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
apple:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.0.app
- name: Build and Test SPM
run: swift test -v
- name: Build and Test CocoaPods
run: pod lib lint --allow-warnings --fail-fast
linux:
runs-on: ubuntu-latest
container:
image: swift:5.8.1
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Build and Test
run: swift test -v
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Publish CocoaPods package
on:
release:
types: [created]
jobs:
publish:
runs-on: macOS-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_14.0.app
- name: Publish Pod
run: |
VERSION=$(echo "${VERSION_TAG}" | sed "s|^v\(.*\)$|\1|g")
sed -i '' "s|[[:blank:]]*s\.version[[:blank:]].*|s.version = '${VERSION}'|g" Swift-BigInt.podspec
pod trunk push --allow-warnings
env:
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }}
VERSION_TAG: ${{ github.event.release.tag_name }}

19 changes: 0 additions & 19 deletions .github/workflows/swift.yml

This file was deleted.

1 change: 0 additions & 1 deletion .swift-version

This file was deleted.

19 changes: 0 additions & 19 deletions BigNumber-iOS/BigNumber_iOS.h

This file was deleted.

20 changes: 0 additions & 20 deletions Carthage/Build/Mac/BigNumber.framework.dSYM/Contents/Info.plist

This file was deleted.

Binary file not shown.
1 change: 0 additions & 1 deletion Carthage/Build/Mac/BigNumber.framework/BigNumber

This file was deleted.

1 change: 0 additions & 1 deletion Carthage/Build/Mac/BigNumber.framework/Headers

This file was deleted.

1 change: 0 additions & 1 deletion Carthage/Build/Mac/BigNumber.framework/Modules

This file was deleted.

1 change: 0 additions & 1 deletion Carthage/Build/Mac/BigNumber.framework/Resources

This file was deleted.

Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion Carthage/Build/Mac/BigNumber.framework/Versions/Current

This file was deleted.

Loading

0 comments on commit f98947c

Please sign in to comment.