Skip to content

Commit 629164a

Browse files
authored
Relabel build scripts and add a 'clean' script (#1099)
1 parent fefc024 commit 629164a

File tree

5 files changed

+8
-6
lines changed

5 files changed

+8
-6
lines changed

.github/workflows/main.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ jobs:
205205
key: crate-cache-wasm-tools-${{ env.wasm-tools_version }}
206206
- name: Build
207207
if: matrix.profile == 'release'
208-
run: npm run build
208+
run: npm run build:release
209209
- name: Build
210210
if: matrix.profile == 'weval'
211211
run: npm run build:weval

.github/workflows/release-please.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ jobs:
101101
key: crate-cache-wasm-tools-${{ env.wasm-tools_version }}
102102
- name: Build
103103
if: ${{ matrix.profile == 'release' }}
104-
run: npm run build
104+
run: npm run build:release
105105
- name: Build
106106
if: ${{ matrix.profile == 'debug' }}
107107
run: npm run build:debug

DEVELOPMENT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ To build from source, you need to have the following tools installed to successf
5252

5353
Build the runtime using npm:
5454
```sh
55-
npm run build && npm run build:debug && npm run build:weval
55+
npm run build
5656
```
5757

5858
#### macOS (Apple silicon)
@@ -105,7 +105,7 @@ npm run build && npm run build:debug && npm run build:weval
105105

106106
Build the runtime using npm:
107107
```sh
108-
npm run build && npm run build:debug && npm run build:weval
108+
npm run build
109109
```
110110

111111
## Testing a Local build in a Compute application

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@
3333
"test:wpt": "tests/wpt-harness/build-wpt-runtime.sh && node ./tests/wpt-harness/run-wpt.mjs -vv",
3434
"test:wpt:debug": "tests/wpt-harness/build-wpt-runtime.sh --debug-build && node ./tests/wpt-harness/run-wpt.mjs -vv",
3535
"test:types": "tsd",
36-
"build": "./runtime/fastly/build-release.sh",
36+
"clean": "rm -f starling.wasm fastly.wasm fastly.debug.wasm fastly-weval.wasm fastly-ics.wevalcache fastly-js-compute-*.tgz",
37+
"build": "npm run clean && npm run build:release && npm run build:debug && npm run build:weval",
38+
"build:release": "./runtime/fastly/build-release.sh",
3739
"build:debug": "./runtime/fastly/build-debug.sh",
3840
"build:weval": "./runtime/fastly/build-release-weval.sh",
3941
"build:debug:info": "./runtime/fastly/build-debug.sh --keep-debug-info",

tests/wpt-harness/run-wpt.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ trap 'rm $output' EXIT
3838

3939
echo "Building the runtime..."
4040
cd "$root"
41-
if ! npm run build > "$output" 2>&1; then
41+
if ! npm run build:release > "$output" 2>&1; then
4242
cat "$output"
4343
exit 1
4444
fi

0 commit comments

Comments
 (0)