Skip to content

Commit

Permalink
ci: update scripts to build xcframework
Browse files Browse the repository at this point in the history
  • Loading branch information
notmandatory committed Nov 9, 2024
1 parent 875877e commit af1d605
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 8,892 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/publish-spm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
./build-xcframework.sh
# remove old xcframework zip
rm bdkFFI.xcframework.zip || true
zip -9 -r bdkFFI.xcframework.zip bdkFFI.xcframework
zip -9 -r bdkFFI.xcframework.zip bdkffi.xcframework
echo "BDKFFICHECKSUM=`swift package compute-checksum bdkFFI.xcframework.zip`" >> $GITHUB_ENV
echo "BDKFFIURL=https\:\/\/github\.com\/${{ github.repository_owner }}\/bdk\-swift\/releases\/download\/${{ inputs.version }}\/bdkFFI\.xcframework\.zip" >> $GITHUB_ENV
Expand All @@ -45,11 +45,9 @@ jobs:
echo checksum = ${{ env.BDKFFICHECKSUM }}
echo url = ${{ env.BDKFFIURL }}
sed "s/BDKFFICHECKSUM/${BDKFFICHECKSUM}/;s/BDKFFIURL/${BDKFFIURL}/" Package.swift.txt > ../../dist/Package.swift
cp Sources/BitcoinDevKit/BitcoinDevKit.swift ../../dist/Sources/BitcoinDevKit/BitcoinDevKit.swift
cp Sources/BitcoinDevKit/Bitcoin.swift ../../dist/Sources/BitcoinDevKit/Bitcoin.swift
cp Sources/BitcoinDevKit/bdk.swift ../../dist/Sources/BitcoinDevKit/BitcoinDevKit.swift
cd ../../dist
git add Sources/BitcoinDevKit/BitcoinDevKit.swift
git add Sources/BitcoinDevKit/Bitcoin.swift
git add Package.swift
git commit -m "Update BitcoinDevKit.swift and Package.swift for release ${{ inputs.version }}"
git push
Expand Down
36 changes: 0 additions & 36 deletions Package.swift

This file was deleted.

Loading

0 comments on commit af1d605

Please sign in to comment.