Skip to content

Commit eb754f3

Browse files
committed
#11 Add build workflow
Signed-off-by: Kaur Palang <kaur.palang@brightcodecompany.com>
1 parent 1ecd2d3 commit eb754f3

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/build.yaml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Build OpenIntegrationEngine
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- name: Set up JDK
19+
uses: actions/setup-java@v4
20+
with:
21+
java-version: '8'
22+
java-package: 'jdk+fx'
23+
distribution: 'zulu'
24+
25+
- name: Build OIE (signed)
26+
if: github.ref == 'refs/heads/main'
27+
working-directory: server
28+
run: ant -f mirth-build.xml
29+
30+
- name: Build OIE (unsigned)
31+
if: github.ref != 'refs/heads/main'
32+
working-directory: server
33+
run: ant -f mirth-build.xml -DdisableSigning=true
34+
35+
- name: Package distribution
36+
run: tar czf openintegrationengine.tar.gz -C server/ setup --transform 's|^setup|openintegrationengine/|'
37+
38+
- name: Create artifact
39+
uses: actions/upload-artifact@v4
40+
with:
41+
name: oie-build
42+
path: openintegrationengine.tar.gz

0 commit comments

Comments
 (0)