-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (63 loc) · 1.89 KB
/
ci_check_build.yml
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: simple ci
on:
push:
branches:
- 'main'
jobs:
check_backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18
cache: 'npm'
cache-dependency-path: 'admin-web/package-lock.json'
- name: build admin-web
run: cd admin-web && npm ci&& npm run build:prod && cd ../
- uses: coursier/cache-action@v6
- uses: coursier/setup-action@v1
with:
jvm: temurin:1.17
- name: build backend
run: cd backend && sbt compile && cd ../
check_client:
strategy:
max-parallel: 1
fail-fast: true
matrix:
settings:
- host: ubuntu-latest
target: x86_64-unknown-linux-gnu
build: make release-linux
- host: macos-latest
target: x86_64-apple-darwin
build: make release-mac-x86_64
runs-on: ${{ matrix.settings.host }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Install Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.settings.target }}
profile: minimal
- name: Set up cargo cache
uses: actions/cache@v3
continue-on-error: false
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
client/target/
key: ${{ matrix.settings.host }}-${{ matrix.settings.target }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ matrix.settings.host }}-cargo-${{ matrix.settings.target }}
- name: Build
run: ${{ matrix.settings.build }}