-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ios: remove xcframework in source code
- Loading branch information
Showing
7 changed files
with
53 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,50 @@ | ||
name: Publish-iOS | ||
|
||
on: | ||
push: | ||
# Pattern matched against refs/tags | ||
tags: | ||
- "*" # Push events to every tag not containing / | ||
on: workflow_dispatch | ||
|
||
jobs: | ||
publish-ios: | ||
runs-on: macos-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Rust | ||
uses: dtolnay/rust-toolchain@stable | ||
with: | ||
toolchain: nightly-2023-10-13 | ||
override: true | ||
components: rustfmt, clippy | ||
|
||
- name: Install iOS target | ||
run: > | ||
rustup target add | ||
aarch64-apple-ios | ||
- name: Add macOS rust std | ||
run: > | ||
rustup component add rust-src --toolchain nightly-2023-10-13-x86_64-apple-darwin | ||
- name: Build xcframework | ||
working-directory: ./ios | ||
run: b_ios.sh | ||
|
||
- name: Zip | ||
working-directory: ./ios | ||
run: | | ||
mkdir build | ||
zip -r build/ezlog_2.0.0_xcframework.zip framework/ezlog.xcframework | ||
- name: Upload xcframework | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
path: ./ios/build | ||
|
||
- name: Install Cocoapods | ||
run: gem install cocoapods | ||
|
||
- name: Deploy to Cocoapods | ||
run: | | ||
set -eo pipefail | ||
chmod +x ./publish_ios.sh | ||
./publish_ios.sh | ||
run: pod trunk push EZLog.podspec --allow-warnings | ||
shell: bash | ||
env: | ||
COCOAPODS_TRUNK_TOKEN: ${{ secrets.COCOAPODS_TRUNK_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ | |
|
||
Pod::Spec.new do |s| | ||
s.name = 'EZLog' | ||
s.version = '0.2.0' | ||
s.version = '2.0.1-alpha.1' | ||
s.summary = 'A high efficiency cross-platform Logging Library.' | ||
s.swift_version = '5.6' | ||
|
||
|
@@ -17,12 +17,16 @@ Pod::Spec.new do |s| | |
DESC | ||
|
||
s.homepage = 'https://github.com/s1rius/ezlog' | ||
s.license = { :type => 'MIT', :file => 'LICENSE' } | ||
s.license = { :type => 'MIT', :file => 'LICENSE-MIT' } | ||
s.author = { 's1rius' => '[email protected]' } | ||
s.source = { :git => 'https://github.com/s1rius/ezlog.git', :tag => s.version.to_s } | ||
s.source = { :git => 'https://github.com/s1rius/ezlog.git', :tag => '2.0.1-alpha.1' } | ||
|
||
s.ios.deployment_target = '13.0' | ||
|
||
s.prepare_command = <<-CMD | ||
# 下载并解压源代码 zip | ||
curl -L -o ezlog.xcframework.zip "https://github.com/s1rius/ezlog/releases/download/2.0.1-alpha.1/ezlog_2.0.1-alpha.1_xcframework.zip" | ||
unzip -o ezlog.xcframework.zip -d ./ios/framework | ||
CMD | ||
s.source_files = 'ios/EZLog/Sources/**/*' | ||
s.ios.vendored_frameworks = 'ios/framework/ezlog.xcframework' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,18 @@ | ||
PODS: | ||
- Logan (1.2.7): | ||
- Logan/mbedtls (= 1.2.7) | ||
- Logan/mbedtls (1.2.7) | ||
- Logan (1.2.9): | ||
- Logan/mbedtls (= 1.2.9) | ||
- Logan/mbedtls (1.2.9) | ||
|
||
DEPENDENCIES: | ||
- Logan (~> 1.2.7) | ||
- Logan (~> 1.2.9) | ||
|
||
SPEC REPOS: | ||
trunk: | ||
- Logan | ||
|
||
SPEC CHECKSUMS: | ||
Logan: d7e508f88d596b186e9cdcc0cf35b45c89bbc22f | ||
Logan: bbfd2c6d9b88d5048145f832751ef32052bfe530 | ||
|
||
PODFILE CHECKSUM: b0d6f635dfe42a64aae58a146db3096d2e027e01 | ||
PODFILE CHECKSUM: 200da04e775c91e5c5b67a8458f5cc9ce8980ca6 | ||
|
||
COCOAPODS: 1.12.1 | ||
COCOAPODS: 1.14.2 |
Binary file not shown.
Binary file removed
BIN
-26.2 MB
ios/framework/ezlog.xcframework/ios-arm64_x86_64-simulator/libezlog.a
Binary file not shown.
This file was deleted.
Oops, something went wrong.