5757 with :
5858 upload_url : ${{ needs.create-release.outputs.upload_url }}
5959
60+ build-web :
61+ runs-on :
62+ - codebuild-defguard-proxy-runner-${{ github.run_id }}-${{ github.run_attempt }}
63+
64+ steps :
65+ - name : Checkout
66+ uses : actions/checkout@v6
67+ with :
68+ submodules : recursive
69+
70+ - name : Install pnpm
71+ uses : pnpm/action-setup@v6
72+ with :
73+ cache : true
74+ version : 10
75+
76+ - name : Build frontend
77+ run : pnpm install --ignore-scripts --frozen-lockfile && pnpm build
78+ working-directory : web
79+
6080 build-binaries :
61- needs : [create-release]
81+ needs :
82+ - build-web
83+ - create-release
6284 runs-on :
6385 - self-hosted
6486 - ${{ matrix.os }}
@@ -88,15 +110,11 @@ jobs:
88110 echo Version: $VERSION
89111 echo "VERSION=$VERSION" >> $GITHUB_ENV
90112
91- - name : Checkout
92- uses : actions/checkout@v6
93- with :
94- submodules : recursive
95-
96113 - name : Install Rust stable
97114 uses : actions-rs/toolchain@v1
98115 with :
99- toolchain : 1.89.0 # "stable" causes rust-lld: error on aarch64-linux target: ${{ matrix.target }}
116+ toolchain : stable
117+ target : ${{ matrix.target }}
100118 override : true
101119
102120 - name : Setup `packer`
@@ -110,31 +128,9 @@ jobs:
110128 [registry."docker.io"]
111129 mirrors = ["dockerhub-proxy.teonite.net"]
112130
113- - name : Install pnpm
114- uses : pnpm/action-setup@v4
115- with :
116- # FIXME: temporarily pinned because of https://github.com/pnpm/pnpm/pull/9959
117- version : 10.17
118-
119- - name : Use Node.js
120- uses : actions/setup-node@v6
121- with :
122- node-version : 25
123- cache : " pnpm"
124- cache-dependency-path : ./web/pnpm-lock.yaml
125-
126- - name : Install frontend dependencies
127- run : pnpm install --ignore-scripts --frozen-lockfile
128- working-directory : web
129-
130- - name : Build frontend
131- run : pnpm build
132- working-directory : web
133-
134131 - name : Build release binary
135132 uses : actions-rs/cargo@v1
136133 with :
137- use-cross : true
138134 command : build
139135 args : --locked --release --target ${{ matrix.target }}
140136
0 commit comments