-
-
Notifications
You must be signed in to change notification settings - Fork 4
57 lines (55 loc) · 1.96 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: Build
on:
push:
branches:
- '*'
tags:
- '*'
jobs:
build_win:
strategy:
matrix:
params:
- acVersion: 24
devKitUrl: WIN_DEVKIT_AC24
devKitDir: API Development Kit 24.3009
platformToolset: v141
- acVersion: 25
devKitUrl: WIN_DEVKIT_AC25
devKitDir: API Development Kit 25.3002
platformToolset: v142
- acVersion: 26
devKitUrl: WIN_DEVKIT_AC26
devKitDir: API Development Kit 26.3000
platformToolset: v142
- acVersion: 27
devKitUrl: WIN_DEVKIT_AC27
devKitDir: API Development Kit 27.3001
platformToolset: v142
runs-on: [ windows-2019 ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Download Development Kit
run: python Tools/download_and_unzip.py ${{ secrets[matrix.params.devKitUrl] }} Build
- name: Generate Project
run: cmake -B Build -G "Visual Studio 16 2019" -A "x64" -T "${{ matrix.params.platformToolset }}" -DAC_API_DEVKIT_DIR="Build/${{ matrix.params.devKitDir }}/Support" .
- name: Build Debug
run: cmake --build Build --config Debug
- name: Build RelWithDebInfo
run: cmake --build Build --config RelWithDebInfo
- name: Finalize file name
run: copy Build/RelWithDebInfo/DotbimAddOn.apx Build/RelWithDebInfo/Dotbim_AC${{ matrix.params.acVersion }}_Win.apx
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
name: Dotbim Add-On AC${{ matrix.params.acVersion }} Win
path: Build/RelWithDebInfo/Dotbim_AC${{ matrix.params.acVersion }}_Win.apx
- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: Build/RelWithDebInfo/Dotbim_AC${{ matrix.params.acVersion }}_Win.apx
draft: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}