fix pack #74
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
name: CI | |
on: | |
push: | |
paths-ignore: | |
- docs/** | |
- cmake/** | |
- .vscode/** | |
- README.md | |
permissions: | |
contents: write | |
jobs: | |
build: | |
strategy: | |
matrix: | |
target: [win32, x64, arm64] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
# Fetch all to make git describe work correctly | |
fetch-depth: 0 | |
- name: Setup CMake | |
run: cmake -B build -A ${{matrix.target}} -D Binding_Java=ON | |
- name: Build | |
run: cmake --build build --config Release --target ALL_BUILD && tree build/java /A /F | |
- name: Pack | |
run: cmake --build build --config Release --target package && tree build/pack /A /F | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
generate_release_notes: true | |
# Publish Packed files | |
files: build/pack/*.zip,build/pack/*.sha1 | |
fail_on_unmatched_files: true |