Skip to content

Commit

Permalink
Merge pull request #11 from input-output-hk/feature/fixRelease
Browse files Browse the repository at this point in the history
fix: release process
  • Loading branch information
goncalo-frade-iohk authored Dec 18, 2023
2 parents 34abde6 + b0f5018 commit d7e9ef8
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: "Release Libraries"

env:
JAVA_VERSION: 11
RUST_VERSION: "1.73.0"
CROSS_VERSION: "0.2.4"

Expand Down
4 changes: 2 additions & 2 deletions .scripts/TemplatePackage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,11 @@ let package = Package(
targets: [
.target(
name: "AnoncredsSwift",
dependencies: ["anoncredsFFI"],
dependencies: ["anoncreds_wrapperFFI"],
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift"
),
.target(
name: "anoncredsFFI",
name: "anoncreds_wrapperFFI",
dependencies: ["libanoncreds"],
path: "uniffi/output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/C"),
// LOCAL
Expand Down
6 changes: 3 additions & 3 deletions uniffi/build-release-apple-universal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ rm -f "$dest_dir/$zip_name" || true
(cd $source_dir && zip -r "../../$dest_dir/$zip_name" $target_dir_name)

echo "Copy .swift binders"
rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift" || true
rm -f "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds_wrapper.swift" || true
mkdir -p ./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift || true
mv "./wrappers/swift/anoncreds/anoncreds.swift" "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds.swift"
mv "./wrappers/swift/anoncreds/anoncreds_wrapper.swift" "./output-frameworks/anoncreds-swift/AnoncredsSwift/Sources/Swift/anoncreds_wrapper.swift"

rm -f "/wrappers/swift/anoncreds/anoncreds.swift" || true
rm -f "/wrappers/swift/anoncreds/anoncreds_wrapper.swift" || true

Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
#ifndef Header_h
#define Header_h

#include "anoncredsFFI.h"
#include "anoncreds_wrapperFFI.h"

#endif /* Header_h */

0 comments on commit d7e9ef8

Please sign in to comment.