-
Notifications
You must be signed in to change notification settings - Fork 5
46 lines (38 loc) · 1.04 KB
/
CI.yaml
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
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
- name: Pack
if: startsWith(github.ref, 'refs/tags/')
run: cmake --build build --config Release --target package
- 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