-
Notifications
You must be signed in to change notification settings - Fork 2
93 lines (78 loc) · 2.49 KB
/
release.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: Release
# Draft Release on any tag
on:
push:
tags:
- 'v*'
jobs:
get_modules:
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: List Java modules
id: echo-modules
run: echo "modules=$(cat .java_modules)" >> $GITHUB_OUTPUT
outputs:
modules: ${{ steps.echo-modules.outputs.modules }}
build_jre:
needs: get_modules
uses: yetanalytics/runtimer/.github/workflows/[email protected]
with:
java-version: '11'
java-distribution: 'temurin'
java-modules: ${{ needs.get_modules.outputs.modules }}
build:
needs: build_jre
runs-on: ubuntu-latest
steps:
- name: Checkout project
uses: actions/checkout@v3
- name: Get an env
uses: yetanalytics/actions/[email protected]
- name: Cache Deps
uses: actions/cache@v3
with:
path: |
~/.m2
~/.gitlibs
key: ${{ runner.os }}-deps-${{ hashFiles('deps.edn') }}
restore-keys: |
${{ runner.os }}-deps-
- name: Build Xapipe
run: make bundle BUNDLE_RUNTIMES=false
- name: Download ubuntu-latest Artifact
uses: actions/download-artifact@v3
with:
name: ubuntu-20.04-jre
- name: Download macOS-latest Artifact
uses: actions/download-artifact@v3
with:
name: macos-11-jre
- name: Download windows-latest Artifact
uses: actions/download-artifact@v3
with:
name: windows-2022-jre
- name: Unzip the runtimes
run: |
mkdir -p target/bundle/runtimes
unzip ubuntu-20.04-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/ubuntu-20.04 target/bundle/runtimes/linux
unzip macos-11-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/macos-11 target/bundle/runtimes/macos
unzip windows-2022-jre.zip -d target/bundle/runtimes
mv target/bundle/runtimes/windows-2022 target/bundle/runtimes/windows
- name: Zip the bundle
run: |
cd target/bundle
zip -r ../../xapipe.zip ./
- name: Craft Draft Release
uses: softprops/action-gh-release@v1
with:
draft: true
files: 'xapipe.zip'
- name: Deploy Documentation (Tag Pushes)
uses: JamesIves/[email protected]
with:
branch: gh-pages
folder: target/bundle/doc