forked from wireapp/core-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: generate XCFramework when releasing for Swift (wireapp#330)
- Loading branch information
Showing
14 changed files
with
480 additions
and
476 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
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 |
---|---|---|
|
@@ -29,26 +29,11 @@ jobs: | |
targets: "aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim" | ||
- name: Setup cargo-make | ||
uses: davidB/rust-cargo-make@v1 | ||
|
||
- name: Build and Publish Swift package | ||
env: | ||
GIT_SSH_COMMAND: "ssh -i /Users/runner/.ssh/id_rsa -o UserKnownHostsFile=/Users/runner/.ssh/known_hosts" | ||
- name: Build xcframework | ||
run: | | ||
export SEMANTIC_VERSION=$(echo $GITHUB_REF_NAME | sed 's/^v\(.*\)/\1/') | ||
mkdir -p /Users/runner/.ssh | ||
echo "${{ secrets.SSH_DEPLOY_KEY }}" > /Users/runner/.ssh/id_rsa | ||
chmod 600 /Users/runner/.ssh/id_rsa | ||
cd crypto-ffi | ||
ssh-keyscan -H github.com > /Users/runner/.ssh/known_hosts | ||
cargo make create-swift-package | ||
cd ../../ | ||
git clone [email protected]:wireapp/core-crypto-swift.git | ||
cd core-crypto-swift | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
cp -r ../core-crypto/crypto-ffi/bindings/swift/* ./ | ||
git add . | ||
git commit -m "chore: release of core-crypto $GITHUB_REF_NAME" | ||
git tag $SEMANTIC_VERSION | ||
git push origin main | ||
git push origin $SEMANTIC_VERSION | ||
cargo make create-ios-xcframework | ||
- name: Upload xcframework | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: crypto-ffi/bindings/swift/WireCoreCrypto.xcframework.zip |
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
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
crypto-ffi/bindings/swift/WireCoreCrypto/BuildSettings.xcconfig
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
// | ||
// Wire | ||
// Copyright (C) 2023 Wire Swiss GmbH | ||
// | ||
// This program is free software: you can redistribute it and/or modify | ||
// it under the terms of the GNU General Public License as published by | ||
// the Free Software Foundation, either version 3 of the License, or | ||
// (at your option) any later version. | ||
// | ||
// This program is distributed in the hope that it will be useful, | ||
// but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
// GNU General Public License for more details. | ||
// | ||
// You should have received a copy of the GNU General Public License | ||
// along with this program. If not, see http://www.gnu.org/licenses/. | ||
// | ||
|
||
// Configuration settings file format documentation can be found at: | ||
// https://help.apple.com/xcode/#/dev745c5c974 | ||
|
||
CURRENT_PROJECT_VERSION = 11.0.0 |
Oops, something went wrong.