forked from apache/fineract
-
Notifications
You must be signed in to change notification settings - Fork 175
63 lines (53 loc) · 1.72 KB
/
Copy pathbuild-core.yml
File metadata and controls
63 lines (53 loc) · 1.72 KB
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
name: Fineract Build Core
on:
workflow_call:
secrets:
DEVELOCITY_ACCESS_KEY:
required: false
permissions:
contents: read
jobs:
build-core:
runs-on: ubuntu-24.04
timeout-minutes: 60
env:
TZ: Asia/Kolkata
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true
- name: Build Fineract
uses: ./.github/actions/setup-and-build-fineract
with:
cache-read-only: false
- name: Pack workspace
run: |
tar --use-compress-program='gzip -9' -cf "${RUNNER_TEMP}/fineract-workspace.tar" -C "${GITHUB_WORKSPACE}" .
- name: Upload workspace
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: fineract-workspace-${{ github.run_id }}
path: ${{ runner.temp }}/fineract-workspace.tar
retention-days: 1
compression-level: 9
- name: Archive test results
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: test-results-build-core
path: '**/build/reports/'
if-no-files-found: ignore
retention-days: 5
compression-level: 9
- name: Archive server logs
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: server-logs-build-core
path: '**/build/cargo/'
retention-days: 5
compression-level: 9