Skip to content
This repository was archived by the owner on Oct 20, 2021. It is now read-only.

Commit 21fe34f

Browse files
author
Jamie Brynes
authored
NPM Packages (#211)
1 parent ade6583 commit 21fe34f

File tree

139 files changed

+155
-314
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+155
-314
lines changed

.buildkite/premerge.steps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ common: &common
1313
- "environment=production"
1414
- "permission_set=builder"
1515
- "platform=windows"
16-
- "queue=v3-1558109315-a75758857a3cdfbe-------z"
16+
- "queue=v3-1562257704-92dadf3bbbe69f0b-------z"
1717
- "scaler_version=2"
1818
- "minimum_instances=1"
1919
- "agent_count=1"
@@ -46,7 +46,7 @@ steps:
4646
BUILD_TARGET_FILTER: "android"
4747
SCRIPTING_BACKEND: "mono"
4848

49-
- label: "build iOS"
49+
- label: "build :ios:"
5050
command: bash -c .shared-ci/scripts/build-worker.sh
5151
<<: *common
5252
artifact_paths:

.buildkite/release-qa.steps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ common: &common
1313
- "environment=production"
1414
- "permission_set=builder"
1515
- "platform=windows"
16-
- "queue=v3-1558109315-a75758857a3cdfbe-------z"
16+
- "queue=v3-1562257704-92dadf3bbbe69f0b-------z"
1717
- "scaler_version=2"
1818
- "minimum_instances=1"
1919
- "agent_count=1"
@@ -47,7 +47,7 @@ steps:
4747
BUILD_TARGET_FILTER: "android"
4848
SCRIPTING_BACKEND: "mono"
4949

50-
- label: "build iOS"
50+
- label: "build :ios:"
5151
command: bash -c .shared-ci/scripts/build-worker.sh
5252
<<: *common
5353
artifact_paths:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Changed
6+
7+
- Changed manifest to use GDK Packages with NPM instead of sideloading.
8+
59
### Internal
610

711
- Split the `MobileClient` build into separate `iOS` and `Android` buildkite steps.

ci/bootstrap.sh

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,18 @@
11
#!/usr/bin/env bash
22
set -e -u -x -o pipefail
33

4+
function isLinux() {
5+
[[ "$(uname -s)" == "Linux" ]];
6+
}
7+
8+
function isMacOS() {
9+
[[ "$(uname -s)" == "Darwin" ]];
10+
}
11+
12+
function isWindows() {
13+
! ( isLinux || isMacOS );
14+
}
15+
416
cd "$(dirname "$0")/../"
517

618
SHARED_CI_DIR="$(pwd)/.shared-ci"
@@ -29,6 +41,17 @@ CLONE_URI="[email protected]:spatialos/gdk-for-unity.git"
2941
TARGET_DIRECTORY="$(realpath $(pwd)/../gdk-for-unity)"
3042
PINNED_VERSION=$(cat ./gdk.pinned)
3143

44+
if [[ -z ${BUILDKITE:-} ]]; then
45+
echo "Warning: About to delete ${TARGET_DIRECTORY}. Please confirm. (Default is Cancel)"
46+
read -p "Y/N > " -r
47+
echo # (optional) move to a new line
48+
if [[ $REPLY =~ ^[Yy]$ ]]; then
49+
echo "Deleting..."
50+
else
51+
exit 1
52+
fi
53+
fi
54+
3255
rm -rf "${TARGET_DIRECTORY}"
3356

3457
mkdir "${TARGET_DIRECTORY}"
@@ -39,4 +62,22 @@ pushd "${TARGET_DIRECTORY}"
3962
git remote add origin "${CLONE_URI}"
4063
git fetch --depth 20 origin develop
4164
git checkout "${PINNED_VERSION}"
65+
./init.sh
4266
popd
67+
68+
if isWindows; then
69+
if [[ -z ${BUILDKITE:-} ]]; then
70+
powershell Start-Process -Verb RunAs -WindowStyle Hidden -Wait -FilePath dotnet.exe -ArgumentList "run", "-p", "$(pwd)/.shared-ci/tools/PackageSymLinker/PackageSymLinker.csproj", "\-\-", "--packages-source-dir", "${TARGET_DIRECTORY}/workers/unity/Packages", "--package-target-dir", "$(pwd)/workers/unity/Packages"
71+
exit 0
72+
fi
73+
fi
74+
75+
EXTRA_ARGS=""
76+
77+
if [[ -n ${BUILDKITE:-} ]]; then
78+
EXTRA_ARGS="--copy"
79+
fi
80+
81+
dotnet run -p ./.shared-ci/tools/PackageSymLinker/PackageSymLinker.csproj -- \
82+
--packages-source-dir "${TARGET_DIRECTORY}/workers/unity/Packages" \
83+
--package-target-dir "$(pwd)/workers/unity/Packages" "${EXTRA_ARGS}"

ci/shared-ci.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
e056fe31826b64dbdf51b6974ba36d9908e32f9e
1+
3af739d9470a84ef58b6f72e57df06387cd0dd27

gdk.pinned

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4e97647d387f5e1eb8f403431a70f891ff837e45
1+
25fc8cc14bbaa92cfd28cf46a995b5e5f44528ed

init.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env bash
2+
set -e -u -x -o pipefail
3+
4+
cd "$(dirname "$0")"
5+
6+
./ci/bootstrap.sh

packer.config.json

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,8 @@
99
".git",
1010
".github",
1111
"ci",
12-
"scripts"
13-
]
14-
},
15-
{
16-
"clone_url": "[email protected]:spatialos/gdk-for-unity.git",
17-
"clone_dir": "gdk-for-unity",
18-
"exclude_paths": [
19-
".git",
20-
".github",
21-
"ci",
22-
"scripts",
23-
"test-project"
12+
"init.sh",
13+
"gdk.pinned"
2414
]
2515
}
2616
]

scripts/powershell/setup.ps1

Lines changed: 0 additions & 91 deletions
This file was deleted.

scripts/shell/setup.sh

Lines changed: 0 additions & 88 deletions
This file was deleted.

0 commit comments

Comments
 (0)