Skip to content

Commit 8caecb2

Browse files
cargo run tool
1 parent 0487ffa commit 8caecb2

15 files changed

Lines changed: 262 additions & 50 deletions

File tree

.github/workflows/build-mac-bundle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
- name: Build Mac Bundle
6868
env:
6969
CARGO_TERM_COLOR: always
70-
run: npm run build-desktop
70+
run: cargo run desktop build
7171

7272
- name: Stage Artifacts
7373
shell: bash

.github/workflows/build-production.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,7 @@ jobs:
5252
- name: 🌐 Build Graphite web code
5353
env:
5454
NODE_ENV: production
55-
run: |
56-
cd frontend
57-
mold -run npm run build
55+
run: mold -run cargo run web build
5856

5957
- name: 📤 Publish to Cloudflare Pages
6058
id: cloudflare

.github/workflows/build-win-bundle.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
shell: bash # `cargo-about` refuses to run in powershell
7474
env:
7575
CARGO_TERM_COLOR: always
76-
run: npm run build-desktop
76+
run: cargo run desktop build
7777

7878
- name: Stage Artifacts
7979
shell: bash

.github/workflows/ci.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
if: steps.skip-check.outputs.skip-check != 'true'
7777
uses: actions/setup-node@v4
7878
with:
79-
node-version: 'latest'
79+
node-version: "latest"
8080

8181
- name: 🚧 Install build dependencies
8282
if: steps.skip-check.outputs.skip-check != 'true'
@@ -98,9 +98,7 @@ jobs:
9898
if: steps.skip-check.outputs.skip-check != 'true'
9999
env:
100100
NODE_ENV: production
101-
run: |
102-
cd frontend
103-
mold -run npm run build
101+
run: mold -run cargo run web build
104102

105103
- name: 📤 Publish to Cloudflare Pages
106104
if: steps.skip-check.outputs.skip-check != 'true'

.github/workflows/comment-!build-commands.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ jobs:
8282
- name: ⌨ Set build command based on comment
8383
id: build_command
8484
run: |
85-
if [[ "${{ github.event.comment.body }}" == "!build-dev" ]]; then
86-
echo "command=build-dev" >> $GITHUB_OUTPUT
85+
if [[ "${{ github.event.comment.body }}" == "!build-debug" ]]; then
86+
echo "command=build debug" >> $GITHUB_OUTPUT
8787
elif [[ "${{ github.event.comment.body }}" == "!build-profiling" ]]; then
88-
echo "command=build-profiling" >> $GITHUB_OUTPUT
88+
echo "command=build profiling" >> $GITHUB_OUTPUT
8989
elif [[ "${{ github.event.comment.body }}" == "!build" ]]; then
9090
echo "command=build" >> $GITHUB_OUTPUT
9191
else
@@ -108,9 +108,7 @@ jobs:
108108
env:
109109
NODE_ENV: production
110110
if: ${{ success() || failure()}}
111-
run: |
112-
cd frontend
113-
mold -run npm run ${{ steps.build_command.outputs.command }}
111+
run: mold -run cargo run web ${{ steps.build_command.outputs.command }}
114112

115113
- name: ❗ Warn on build failure
116114
if: ${{ failure() }}

.github/workflows/deploy-master.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: 🟢 Install the latest Node.js
3232
uses: actions/setup-node@v4
3333
with:
34-
node-version: 'latest'
34+
node-version: latest
3535

3636
- name: 🚧 Install build dependencies
3737
run: |
@@ -49,9 +49,7 @@ jobs:
4949
- name: 🌐 Build Graphite web code
5050
env:
5151
NODE_ENV: production
52-
run: |
53-
cd frontend
54-
mold -run npm run build
52+
run: mold -run cargo run web build
5553

5654
- name: 📤 Publish to Cloudflare Pages
5755
id: cloudflare

Cargo.lock

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ members = [
4040
"node-graph/node-macro",
4141
"node-graph/preprocessor",
4242
"proc-macros",
43+
"tools/building",
4344
"tools/crate-hierarchy-viz",
4445
"tools/third-party-licenses",
4546
"tools/editor-message-tree",
@@ -71,13 +72,13 @@ default-members = [
7172
"node-graph/nodes/transform",
7273
"node-graph/nodes/vector",
7374
"node-graph/graph-craft",
74-
"node-graph/graphene-cli",
7575
"node-graph/nodes/gstd",
7676
"node-graph/interpreted-executor",
7777
"node-graph/node-macro",
7878
"node-graph/preprocessor",
7979
# blocked by https://github.com/rust-lang/cargo/issues/15890
8080
# "proc-macros",
81+
"tools/building",
8182
]
8283
resolver = "2"
8384

package-lock.json

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

package.json

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

0 commit comments

Comments
 (0)