Skip to content

Commit

Permalink
Add GitHub Action for Windows native artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-allan committed Dec 14, 2020
1 parent a8e7f81 commit 9bccc0f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/windows-native.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Windows Native Artifact Build

on:
push:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
build:
runs-on: windows-latest
steps:

- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install SWIG
run: cinst swig

- name: Run SWIG
run: |
mkdir java\target\swig\ome\jxrlib
swig.exe -java -c++ -package ome.jxrlib -outdir java\target\swig\ome\jxrlib -o java\target\swig\JXR_wrap.cxx java\JXR.i
- name: Build native code
run: msbuild jxrencoderdecoder\JXR_vc14.sln

- name: Build native artifacts
run: mvn -f java\native-windows_64\pom.xml package

- name: Archive build artifacts
uses: actions/upload-artifact@v2
with:
name: artifacts
path: java\native-windows_64\target\*.jar

0 comments on commit 9bccc0f

Please sign in to comment.