forked from radioegor146/jar-to-dll
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 939 Bytes
/
build.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
on:
- push
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install MinGW x86-64 compiler
run: sudo apt install -y g++-mingw-w64-x86-64
- name: Install JDK
run: sudo apt install -y openjdk-8-jdk
- name: Check if input.jar exists
id: check_input_jar
uses: andstor/file-existence-action@v2
with:
files: input.jar
- name: Copy test if input.jar does not exist
if: steps.check_input_jar.outputs.files_exists == 'false'
run: |
echo "::warning file=input.jar::No input.jar presented, so using input.jar.test"
cp input.jar.test input.jar
- name: Build
run: make build
- name: Upload output.dll as artifact
uses: actions/upload-artifact@v4
with:
name: output-x64.dll
path: output.dll
if-no-files-found: error