Skip to content

Commit 3d44869

Browse files
committed
wip
1 parent c9065cb commit 3d44869

File tree

3 files changed

+5
-22
lines changed
  • .mobala
  • idealingua-v1
    • idealingua-v1-runtime-rpc-csharp/src/main/nuget
    • idealingua-v1-runtime-rpc-typescript/src/npmjs

3 files changed

+5
-22
lines changed

.mobala/env.sh

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -4,28 +4,11 @@ set -euo pipefail
44
if [[ "${DO_VERBOSE}" == 1 ]] ; then set -x ; fi
55

66
set_gh_env
7+
set_scala_sbtgen_variables
8+
set_jvm_options
79

8-
replacement="build.${CI_BUILD_UNIQ_SUFFIX}"
9-
export IDEALINGUA_VERSION=$(cat version.sbt | sed -r 's/.*\"(.*)\".**/\1/' | sed -E "s/SNAPSHOT/${replacement}/")
10-
11-
export SCALA212=$(cat project/Deps.sc | grep 'val scala212 ' | sed -r 's/.*\"(.*)\".**/\1/')
12-
export SCALA213=$(cat project/Deps.sc | grep 'val scala213 ' | sed -r 's/.*\"(.*)\".**/\1/')
13-
export SCALA3=$(cat project/Deps.sc | grep 'val scala300 ' | sed -r 's/.*\"(.*)\".**/\1/')
14-
15-
[[ -z "${SCALA_VERSION+x}" ]] && echo "Missing SCALA_VERSION" && exit 1
16-
17-
case $SCALA_VERSION in
18-
2.12) SCALA_VERSION="$SCALA212" ;;
19-
2.13) SCALA_VERSION="$SCALA213" ;;
20-
3) SCALA_VERSION="$SCALA3" ;;
21-
*) exit 1 ;;
22-
esac
23-
24-
export SCALA_VERSION="$SCALA_VERSION"
25-
export VERSION_COMMAND="++ $SCALA_VERSION"
2610
export NUMCPU="$(nproc)"
2711

28-
set_jvm_options
2912
debug_env
3013

3114
# this script receives all the CLI args from the main script and may decide which flows should be enabled

idealingua-v1/idealingua-v1-runtime-rpc-csharp/src/main/nuget/publish.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ cd $THISDIR/solution
1212
[[ -z "$TOKEN_NUGET" ]] && exit 0
1313
[[ -z "$CI_BUILD_UNIQ_SUFFIX" ]] && exit 0
1414

15-
sed -i 's/0.0.1-build.0/'${IDEALINGUA_VERSION}'/g' Izumi.RPC.Runtime.CS.IRT/Izumi.RPC.Runtime.CS.IRT.csproj
15+
sed -i 's/0.0.1-build.0/'${PROJECT_VERSION}'/g' Izumi.RPC.Runtime.CS.IRT/Izumi.RPC.Runtime.CS.IRT.csproj
1616

1717
if [[ "$CI_BRANCH_TAG" =~ ^v.*$ ]] ; then
1818
dotnet build -c Release

idealingua-v1/idealingua-v1-runtime-rpc-typescript/src/npmjs/publish.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ cp package.json ${pkgPath}/
2121
node -p "JSON.stringify({...require(path.resolve(__dirname, 'package.json')), name: '${pkgName}-es'}, null, 2)" > ${pkgPath}-es/package.json
2222

2323
npm install json
24-
./node_modules/json/lib/json.js -I -f ${pkgPath}/package.json -e "this.version=\"${IDEALINGUA_VERSION}\""
25-
./node_modules/json/lib/json.js -I -f ${pkgPath}-es/package.json -e "this.version=\"${IDEALINGUA_VERSION}\""
24+
./node_modules/json/lib/json.js -I -f ${pkgPath}/package.json -e "this.version=\"${PROJECT_VERSION}\""
25+
./node_modules/json/lib/json.js -I -f ${pkgPath}-es/package.json -e "this.version=\"${PROJECT_VERSION}\""
2626

2727
( cd ${pkgPath} && npm publish --access public || exit 1 )
2828
( cd ${pkgPath}-es && npm publish --access public || exit 1 )

0 commit comments

Comments
 (0)