dylib filename without version suffix #23
Workflow file for this run
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
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
# https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- run: ./build.sh | |
- name: install.tar.gz | |
run: | | |
tar -czvf install.tar.gz install | |
- name: libtdjson.xcframework.tar.gz | |
run: | | |
tar -czvf libtdjson.xcframework.tar.gz libtdjson.xcframework | |
- name: cocoapod.tar.gz | |
run: | | |
tar -czvf cocoapod.tar.gz LICENSE libtdjson.xcframework | |
- name: cocoapod_modulemap.tar.gz | |
run: | | |
cp module.modulemap install/tdjson/iOS/include/ | |
cd install/tdjson/iOS/include | |
tar -czvf cocoapod_modulemap.tar.gz module.modulemap td/telegram/td_json_client.h td/telegram/tdjson_export.h | |
rm module.modulemap | |
cd ../../../.. | |
mv install/tdjson/iOS/include/cocoapod_modulemap.tar.gz . | |
- uses: ncipollo/release-action@v1 | |
with: | |
allowUpdates: true | |
artifacts: "install.tar.gz,libtdjson.xcframework.tar.gz,cocoapod.tar.gz,cocoapod_modulemap.tar.gz" | |
token: ${{ secrets.GITHUB_TOKEN }} | |
body: | | |
- `install.tar.gz`: Dev pack including everything for all platforms | |
- `libtdjson.xcframework.tar.gz`: Dynamic libraries packed as xcframework for all platforms | |
- `cocoapod.tar.gz`: Files for CocoaPods, see ./libtdjson.podspec | |
- `cocoapod_modulemap.tar.gz`: Example module files for CocoaPods# Building step need much more time, so We do this first to safe time, just in case what if this failed | |
- name: pod trunk push | |
run: | | |
pod trunk push --allow-warnings libtdjson.podspec | |
pod trunk push --allow-warnings flutter_libtdjson.podspec | |
env: | |
COCOAPODS_TRUNK_TOKEN: ${{secrets.COCOAPODS_TRUNK_TOKEN}} | |
notify: | |
if: cancelled() == false | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: up9cloud/action-notify@master | |
env: | |
GITHUB_JOB_STATUS: ${{ needs.build.result }} | |
TELEGRAM_BOT_TOKEN: ${{secrets.TELEGRAM_BOT_TOKEN}} | |
TELEGRAM_CHAT_ID: ${{secrets.TELEGRAM_CHAT_ID}} |