-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.gitlab-ci.yml
More file actions
46 lines (42 loc) · 935 Bytes
/
.gitlab-ci.yml
File metadata and controls
46 lines (42 loc) · 935 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stages:
- test
- package
variables:
GO_VERSION: "1.23"
NODE_VERSION: "20"
backend:test:
stage: test
image: golang:${GO_VERSION}
script:
- cd backend
- go test ./...
frontend:test:
stage: test
image: node:${NODE_VERSION}
script:
- npm --prefix frontend ci
- npm --prefix frontend run test
package:macos:
stage: package
tags:
- macos
rules:
- if: '$CI_COMMIT_TAG =~ /^v.*/'
before_script:
- rustc --version
- cargo --version
- node --version
- npm --version
- go version
script:
- npm --prefix frontend ci
- npm --prefix desktop install
- bash scripts/desktop/build_sidecar_macos.sh
- npm --prefix desktop run tauri build -- --target universal-apple-darwin
- bash scripts/desktop/notarize_macos.sh
- bash scripts/desktop/collect_release_assets.sh
artifacts:
when: always
expire_in: 14 days
paths:
- release-assets/