Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
llbartekll committed Sep 24, 2024
1 parent af9eff1 commit 24689e1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 15 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
CARGO_TERM_COLOR: always
VERSION: ${{ github.event.inputs.version || '0.0.12' }}
VERSION: ${{ github.event.inputs.version || '0.0.13' }}
TARGET_BRANCH: ${{ github.ref_name }}

permissions:
Expand Down Expand Up @@ -55,6 +55,8 @@ jobs:
- name: Build and Package Rust XCFramework
run: |
make build-ios-bindings
mkdir -p crates/ffi/YttriumCore/Sources/YttriumCore/SwiftFFI
cp -R crates/ffi/generated/* crates/ffi/YttriumCore/Sources/YttriumCore/SwiftFFI/
make zip-rust-xcframework
make compute-rust-checksum
make generate-package-swift
Expand Down
3 changes: 1 addition & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ zip-rust-xcframework:
mkdir -p Output
cd crates/ffi/YttriumCore/ && \
zip -r ../../../Output/RustXcframework.xcframework.zip \
RustXcframework.xcframework \
../generated
RustXcframework.xcframework

.PHONY: compute-rust-checksum
compute-rust-checksum:
Expand Down
11 changes: 5 additions & 6 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,18 @@ let package = Package(
targets: [
.binaryTarget(
name: "RustXcframework",
url: "https://github.com/reown-com/yttrium/releases/download/0.0.8/RustXcframework.xcframework.zip",
checksum: "2a9b8823a8b6e02d4590a24e3ce0f56184e88c14ec4d6f64e0a39c57c2efb3b1"
url: "https://github.com/reown-com/yttrium/releases/download/0.0.12/RustXcframework.xcframework.zip",
checksum: "<your_checksum_here>"
),
.target(
name: "YttriumCore",
dependencies: [
"RustXcframework"
],
path: "crates/ffi",
exclude: ["YttriumCore/RustXcframework.xcframework"],
path: "crates/ffi/YttriumCore/Sources/YttriumCore",
sources: [
"YttriumCore/Sources/YttriumCore",
"generated"
".",
"SwiftFFI"
]
),
.target(
Expand Down
13 changes: 7 additions & 6 deletions crates/ffi/YttriumCore/Package.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// swift-tools-version:5.9.0
// swift-tools-version:5.9
import PackageDescription

let package = Package(
Expand Down Expand Up @@ -29,18 +29,19 @@ let package = Package(
"RustXcframework",
.product(name: "SwiftDotenv", package: "swift-dotenv")
],
path: ".",
exclude: ["RustXcframework.xcframework"],
path: "Sources/YttriumCore",
exclude: [],
sources: [
"Sources/YttriumCore",
"../generated"
".",
"SwiftFFI"
]
),
.testTarget(
name: "YttriumCoreTests",
dependencies: [
"YttriumCore"
]
],
path: "Tests/YttriumCoreTests"
),
]
)

0 comments on commit 24689e1

Please sign in to comment.