ios #1157
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
# File generated by `go run ./internal/cmd/ghgen`; DO NOT EDIT. | |
name: ios | |
on: | |
push: | |
branches: | |
- "release/**" | |
- "fullbuild" | |
- "iosbuild" | |
tags: | |
- "v*" | |
schedule: | |
- cron: "17 1 * * *" | |
jobs: | |
build_ios_mobile: | |
runs-on: macos-12 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get GOVERSION content | |
id: goversion | |
run: echo "version=$(cat GOVERSION)" >> "$GITHUB_OUTPUT" | |
- uses: magnetikonline/action-golang-cache@v4 | |
with: | |
go-version: "${{ steps.goversion.outputs.version }}" | |
cache-key-suffix: "-ios-${{ steps.goversion.outputs.version }}" | |
- run: | | |
echo -n $PSIPHON_CONFIG_KEY > ./internal/engine/psiphon-config.key | |
echo $PSIPHON_CONFIG_JSON_AGE_BASE64 | base64 -d > ./internal/engine/psiphon-config.json.age | |
env: | |
PSIPHON_CONFIG_KEY: ${{ secrets.PSIPHON_CONFIG_KEY }} | |
PSIPHON_CONFIG_JSON_AGE_BASE64: ${{ secrets.PSIPHON_CONFIG_JSON_AGE_BASE64 }} | |
# ./internal/cmd/buildtool needs coreutils for sha256 plus GNU build tools | |
- run: brew install autoconf automake coreutils libtool | |
- run: make EXPECTED_XCODE_VERSION=14.2 ios | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libcrypto.xcframework.zip | |
path: ./MOBILE/ios/libcrypto.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libcrypto.podspec | |
path: ./MOBILE/ios/libcrypto.podspec | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libevent.xcframework.zip | |
path: ./MOBILE/ios/libevent.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libevent.podspec | |
path: ./MOBILE/ios/libevent.podspec | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libssl.xcframework.zip | |
path: ./MOBILE/ios/libssl.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libssl.podspec | |
path: ./MOBILE/ios/libssl.podspec | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libtor.xcframework.zip | |
path: ./MOBILE/ios/libtor.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libtor.podspec | |
path: ./MOBILE/ios/libtor.podspec | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libz.xcframework.zip | |
path: ./MOBILE/ios/libz.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: libz.podspec | |
path: ./MOBILE/ios/libz.podspec | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: oonimkall.xcframework.zip | |
path: ./MOBILE/ios/oonimkall.xcframework.zip | |
- uses: actions/upload-artifact@v3 | |
with: | |
name: oonimkall.podspec | |
path: ./MOBILE/ios/oonimkall.podspec | |
publish_ios_mobile: | |
runs-on: ubuntu-22.04 | |
needs: build_ios_mobile | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libcrypto.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libcrypto.podspec | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libevent.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libevent.podspec | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libssl.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libssl.podspec | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libtor.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libtor.podspec | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libz.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: libz.podspec | |
- uses: actions/download-artifact@v3 | |
with: | |
name: oonimkall.xcframework.zip | |
- uses: actions/download-artifact@v3 | |
with: | |
name: oonimkall.podspec | |
- run: ./script/ghpublish.bash libcrypto.xcframework.zip libcrypto.podspec libevent.xcframework.zip libevent.podspec libssl.xcframework.zip libssl.podspec libtor.xcframework.zip libtor.podspec libz.xcframework.zip libz.podspec oonimkall.xcframework.zip oonimkall.podspec | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# End of autogenerated file |