-
Notifications
You must be signed in to change notification settings - Fork 38
56 lines (45 loc) · 1.4 KB
/
windows-build.yml
File metadata and controls
56 lines (45 loc) · 1.4 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
name: build opensource COBOL 4J on Windows
on:
workflow_call:
inputs:
upload-artifacts:
description: 'Upload artifacts'
required: true
type: boolean
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/setup-java@v5
with:
distribution: 'temurin'
java-version: '21'
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2.0.0
- name: Checkout opensource COBOL 4J
uses: actions/checkout@v6
- name: Restore NuGet packages
run: nuget restore ./win/
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
with:
gradle-version: wrapper
- name: Install opensource COBOL 4J
working-directory: libcobj
run: ./gradlew shadowJar
- name: Build cobj.exe
run: msbuild /p:Configuration=Release /p:AdditionalIncludePaths=./:./cobj/:./win:./lib win/opensourcecobol4j.sln
- name: Upload libcobj.jar
if: ${{inputs.upload-artifacts}}
uses: actions/upload-artifact@v7
with:
name: libcobj.jar
path: libcobj/app/build/libs/libcobj.jar
- name: Upload cobj.exe
if: ${{inputs.upload-artifacts}}
uses: actions/upload-artifact@v7
with:
name: cobj.exe
path: win/x64/Release/cobj.exe