Skip to content

Commit

Permalink
ci: build frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
tulir committed Oct 6, 2024
1 parent 1a359f9 commit 3b2ae2d
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ jobs:
go install honnef.co/go/tools/cmd/staticcheck@latest
pip install pre-commit
export PATH="$HOME/go/bin:$PATH"
mkdir -p web/dist
touch web/dist/empty
- name: Build
run: go build -v ./...
Expand Down
26 changes: 26 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
stages:
- frontend
- build

default:
Expand All @@ -10,6 +11,23 @@ cache:
paths:
- .cache

frontend:
image: node:22-alpine
stage: frontend
variables:
NODE_ENV: "production"
cache:
paths:
- web/node_modules
script:
- cd web
- npm install
- npm run build
artifacts:
paths:
- web/dist
expire_in: 1 hour

.build-linux: &build-linux
stage: build
before_script:
Expand All @@ -19,6 +37,10 @@ cache:
artifacts:
paths:
- gomuks
dependencies:
- build frontend
needs:
- build frontend

linux/amd64:
<<: *build-linux
Expand Down Expand Up @@ -62,3 +84,7 @@ macos/arm64:
paths:
- gomuks
- libolm.3.dylib
dependencies:
- build frontend
needs:
- build frontend

0 comments on commit 3b2ae2d

Please sign in to comment.