forked from coder/code-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch to a single job to build the npm package
The architecture specific jobs pull it in and then build releases. Much faster!
- Loading branch information
Showing
8 changed files
with
104 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
main() { | ||
cd "$(dirname "${0}")/../.." | ||
source ./ci/build/lib.sh | ||
|
||
rsync "$RELEASE_PATH/" "$RELEASE_PATH-static" | ||
RELEASE_PATH+=-static | ||
|
||
# We cannot find the path to node from $PATH because yarn shims a script to ensure | ||
# we use the same version it's using so we instead run a script with yarn that | ||
# will print the path to node. | ||
local node_path | ||
node_path="$(yarn -s node <<< 'console.info(process.execPath)')" | ||
|
||
mkdir -p "$RELEASE_PATH/bin" | ||
rsync ./ci/build/code-server.sh "$RELEASE_PATH/bin/code-server" | ||
rsync "$node_path" "$RELEASE_PATH/lib/node" | ||
|
||
cd "$RELEASE_PATH" | ||
yarn --production | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/usr/bin/env bash | ||
source ./ci/lib.sh | ||
|
||
# RELEASE_PATH is the destination directory for the release from the root. | ||
# Defaults to release | ||
RELEASE_PATH="${RELEASE_PATH-release}" | ||
|
||
rsync() { | ||
command rsync -a --del "$@" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/usr/bin/env bash | ||
set -euo pipefail | ||
|
||
main() { | ||
cd "$(dirname "$0")/../.." | ||
|
||
yarn release:static | ||
./ci/build/test-static-release.sh | ||
./ci/build/archive-static-release.sh | ||
|
||
if [[ $OSTYPE == linux* ]]; then | ||
yarn pkg | ||
fi | ||
} | ||
|
||
main "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters