-
-
Notifications
You must be signed in to change notification settings - Fork 9
55 lines (55 loc) · 1.64 KB
/
build-cache.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
name: build-cache
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
jobs:
build-cache:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ${{ github.workspace }}/app
steps:
- uses: actions/checkout@v4
with:
path: generator-jhipster-native
fetch-depth: 1
- uses: jhipster/actions/setup-runner@v0
with:
node-version: 20
binary-dir: ${{ github.workspace }}/generator-jhipster-native/cli/
- uses: graalvm/setup-graalvm@v1
with:
java-version: 17
distribution: 'graalvm-community'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: jhipster/actions/cache-npm-dependencies@v0
with:
generator-path: generator-jhipster-native
if: always()
- run: cli.cjs generate-sample --all
continue-on-error: true
- run: cd mvcJwt && ./npmw
continue-on-error: true
- run: npm run backend:build-cache --workspaces
continue-on-error: true
- uses: jhipster/actions/create-app-path@v0
- run: cli.cjs generate-sample --all --build gradle
continue-on-error: true
- run: cd mvcJwt && ./npmw
continue-on-error: true
- run: npm run backend:build-cache --workspaces
continue-on-error: true
- uses: jhipster/actions/save-cache@v0
if: always()
with:
key: ${{ github.run_id }}
npm: true
maven: true
gradle: true
- uses: jhipster/actions/restore-cache@v0
with:
npm: true
maven: true
gradle: true