Skip to content

Commit

Permalink
Revert package.swift changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nirinchev committed Mar 13, 2024
1 parent 723f7cc commit ac64be7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build-binaries.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
fi
echo "version=$REALM_CORE_VERSION" >> "$GITHUB_OUTPUT"
- name: Checkout Core
- name: Clone Core
uses: actions/checkout@v4
with:
repository: realm/realm-core
Expand All @@ -50,7 +50,7 @@ jobs:
fetch-tags: true

- name: Checkout Core@${{ steps.get-core-version.outputs.version }}
run: git checkout ${{ steps.get-core-version.outputs.version }}
run: git checkout ${{ steps.get-core-version.outputs.version }} --recurse-submodules -f
working-directory: core

- name: Build for ${{ matrix.target }}
Expand All @@ -74,12 +74,17 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Checkout Core
- name: Clone Core
uses: actions/checkout@v4
with:
repository: realm/realm-core
path: core
ref: ${{ needs.build-packages.outputs.core-version }}
fetch-depth: 0
fetch-tags: true

- name: Checkout Core@${{ needs.build-packages.outputs.core-version }}
run: git checkout ${{ needs.build-packages.outputs.core-version }}
working-directory: core

- name: Download binaries
uses: actions/download-artifact@v4
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ let package = Package(
targets: ["Realm", "RealmSwift"]),
],
dependencies: [
.package(url: "https://github.com/realm/realm-core.git", revision: "v\(coreVersion)")
.package(url: "https://github.com/realm/realm-core.git", exact: coreVersion)
],
targets: [
.target(
Expand Down
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ case "$COMMAND" in
new_version="$2"
old_version="$(sed -n 's/^REALM_CORE_VERSION=\(.*\)$/\1/p' "${source_root}/dependencies.list")"

sed -i '' "s/^REALM_CORE_VERSION=.*/REALM_CORE_VERSION=$new_version/" dependencies.list
sed -i '' "s/^REALM_CORE_VERSION=.*/REALM_CORE_VERSION=v$new_version/" dependencies.list
sed -i '' "s/^let coreVersion =.*/let coreVersion = Version(\"$new_version\")/" Package.swift
sed -i '' "s/Upgraded realm-core from ? to ?/Upgraded realm-core from $old_version to $new_version/" CHANGELOG.md

Expand Down

0 comments on commit ac64be7

Please sign in to comment.