-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Action for Windows native artifacts
- Loading branch information
1 parent
a8e7f81
commit 9bccc0f
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |