Rename lib
references in Github Actions to sdk
(#4593)
This commit is contained in:
parent
d2354caf8f
commit
a16f850c4f
4 changed files with 25 additions and 25 deletions
4
.github/workflows/beta.yml
vendored
4
.github/workflows/beta.yml
vendored
|
@ -110,11 +110,11 @@ jobs:
|
|||
|
||||
# Bump the crate version
|
||||
sed -i "s#^version = \".*\"#version = \"${{ steps.bump.outputs.version }}\"#" Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${{ steps.bump.outputs.version }}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${{ steps.bump.outputs.version }}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"2.0.0-${{ steps.bump.outputs.version }}\"#" core/Cargo.toml
|
||||
|
||||
# Update dependency versions
|
||||
sed -i "s#surrealdb-core2 = { version = \".*\", default-features#surrealdb-core2 = { version = \"=2.0.0-${{ steps.bump.outputs.version }}\", default-features#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \".*\", default-features#surrealdb-core2 = { version = \"=2.0.0-${{ steps.bump.outputs.version }}\", default-features#" sdk/Cargo.toml
|
||||
|
||||
# Update Cargo.lock without updating dependency versions
|
||||
cargo check --no-default-features --features storage-mem
|
||||
|
|
4
.github/workflows/patch.yml
vendored
4
.github/workflows/patch.yml
vendored
|
@ -68,11 +68,11 @@ jobs:
|
|||
|
||||
# Bump the crate version
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"2.0.0-${version}\"#" core/Cargo.toml
|
||||
|
||||
# Update dependency versions
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" sdk/Cargo.toml
|
||||
|
||||
# Update Cargo.lock without updating dependency versions
|
||||
cargo check --no-default-features --features storage-mem
|
||||
|
|
34
.github/workflows/reusable_publish_version.yml
vendored
34
.github/workflows/reusable_publish_version.yml
vendored
|
@ -109,12 +109,12 @@ jobs:
|
|||
|
||||
# Bump the crate version
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"2.0.0-${version}\"#" core/Cargo.toml
|
||||
|
||||
# Update dependency versions
|
||||
sed -i "s#surrealdb = { version = \"=${currentVersion}\"#surrealdb = { version = \"${major}\"#" Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" sdk/Cargo.toml
|
||||
|
||||
# Update Cargo.lock without updating dependency versions
|
||||
cargo check --no-default-features --features storage-mem
|
||||
|
@ -148,7 +148,7 @@ jobs:
|
|||
|
||||
# Update dependency versions
|
||||
sed -i "s#surrealdb = { version = \"=${currentVersion}\"#surrealdb = { version = \"=${betaVersion}\"#" Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${betaVersion}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${betaVersion}\"#" sdk/Cargo.toml
|
||||
else
|
||||
git checkout -b releases/beta
|
||||
major=$(echo $currentVersion | tr "." "\n" | sed -n 1p)
|
||||
|
@ -157,12 +157,12 @@ jobs:
|
|||
|
||||
# Update dependency versions
|
||||
sed -i "s#surrealdb = { version = \"${major}\"#surrealdb = { version = \"=${betaVersion}\"#" Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${betaVersion}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${betaVersion}\"#" sdk/Cargo.toml
|
||||
fi
|
||||
|
||||
# Bump the crate version
|
||||
sed -i "s#^version = \".*\"#version = \"${betaVersion}\"#" Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${betaVersion}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${betaVersion}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"2.0.0-${betaVersion}\"#" core/Cargo.toml
|
||||
|
||||
# Update Cargo.lock without updating dependency versions
|
||||
|
@ -566,10 +566,10 @@ jobs:
|
|||
|
||||
# Update the version to a nightly one
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" core/Cargo.toml
|
||||
sed -i "s#surrealdb = { version = \"2\"#surrealdb = { version = \"=${version}\"#" Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"2\"#surrealdb-core = { version = \"=${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"2\"#surrealdb-core = { version = \"=${version}\"#" sdk/Cargo.toml
|
||||
|
||||
# Update Cargo.lock without updating dependency versions
|
||||
cargo check --no-default-features --features storage-mem
|
||||
|
@ -650,9 +650,9 @@ jobs:
|
|||
version=${major}.${minor}.$(($betaNum - 1))
|
||||
|
||||
# Update crate version
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"2.0.0-${version}\"#" core/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core2 = { version = \"=2.0.0-${currentVersion}\"#surrealdb-core2 = { version = \"=2.0.0-${version}\"#" sdk/Cargo.toml
|
||||
|
||||
- name: Patch alpha crate version
|
||||
if: ${{ inputs.environment == 'alpha' }}
|
||||
|
@ -662,9 +662,9 @@ jobs:
|
|||
version=2.0.$((${{ inputs.patch }} - 1))
|
||||
|
||||
# Update the version to a nightly one
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" core/Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"2\"#surrealdb-core = { version = \"=${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"2\"#surrealdb-core = { version = \"=${version}\"#" sdk/Cargo.toml
|
||||
|
||||
- name: Patch nightly crate version
|
||||
if: ${{ inputs.environment == 'nightly' }}
|
||||
|
@ -682,9 +682,9 @@ jobs:
|
|||
version=${major}.${minor}.${date}
|
||||
|
||||
# Update the version to a nightly one
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" sdk/Cargo.toml
|
||||
sed -i "s#^version = \".*\"#version = \"${version}\"#" core/Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"${major}\"#surrealdb-core = { version = \"=${version}\"#" lib/Cargo.toml
|
||||
sed -i "s#surrealdb-core = { version = \"${major}\"#surrealdb-core = { version = \"=${version}\"#" sdk/Cargo.toml
|
||||
|
||||
- name: Patch crate name and description
|
||||
if: ${{ inputs.environment != 'stable' }}
|
||||
|
@ -692,14 +692,14 @@ jobs:
|
|||
set -x
|
||||
|
||||
# Patch crate name
|
||||
sed -i "0,/surrealdb/s//surrealdb-${{ inputs.environment }}/" lib/Cargo.toml
|
||||
sed -i "0,/surrealdb/s//surrealdb-${{ inputs.environment }}/" sdk/Cargo.toml
|
||||
sed -i "0,/surrealdb-core/s//surrealdb-core-${{ inputs.environment }}/" core/Cargo.toml
|
||||
|
||||
# Patch lib dependency
|
||||
sed -i "s#path = \"\.\./core\", package = \"surrealdb-core\"#path = \"../core\", package = \"surrealdb-core-${{ inputs.environment }}\"#" lib/Cargo.toml
|
||||
# Patch sdk dependency
|
||||
sed -i "s#path = \"\.\./core\", package = \"surrealdb-core\"#path = \"../core\", package = \"surrealdb-core-${{ inputs.environment }}\"#" sdk/Cargo.toml
|
||||
|
||||
# Patch the description
|
||||
sed -i "s#^description = \".*\"#description = \"A ${{ inputs.environment }} release of the surrealdb crate\"#" lib/Cargo.toml
|
||||
sed -i "s#^description = \".*\"#description = \"A ${{ inputs.environment }} release of the surrealdb crate\"#" sdk/Cargo.toml
|
||||
sed -i "s#^description = \".*\"#description = \"A ${{ inputs.environment }} release of the surrealdb-core crate\"#" core/Cargo.toml
|
||||
|
||||
# Temporarily commit patches
|
||||
|
|
8
.github/workflows/supply-chain.yml
vendored
8
.github/workflows/supply-chain.yml
vendored
|
@ -9,9 +9,9 @@ on:
|
|||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- core/Cargo.toml
|
||||
- lib/Cargo.toml
|
||||
- sdk/Cargo.toml
|
||||
- build.rs
|
||||
- lib/build.rs
|
||||
- sdk/build.rs
|
||||
- supply-chain/audits.toml
|
||||
- supply-chain/config.toml
|
||||
- supply-chain/imports.lock
|
||||
|
@ -24,9 +24,9 @@ on:
|
|||
- Cargo.lock
|
||||
- Cargo.toml
|
||||
- core/Cargo.toml
|
||||
- lib/Cargo.toml
|
||||
- sdk/Cargo.toml
|
||||
- build.rs
|
||||
- lib/build.rs
|
||||
- sdk/build.rs
|
||||
- supply-chain/audits.toml
|
||||
- supply-chain/config.toml
|
||||
- supply-chain/imports.lock
|
||||
|
|
Loading…
Reference in a new issue