-
Notifications
You must be signed in to change notification settings - Fork 17
68 lines (65 loc) · 3.61 KB
/
archicad_addon_build_check.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
58
59
60
61
62
63
64
65
66
67
68
name: Archicad Add-On Build Check
on: [push, pull_request]
jobs:
build_win:
strategy:
fail-fast: false
matrix:
params:
- acVersion: 25
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/25.3002/API.Development.Kit.WIN.25.3002.zip
- acVersion: 26
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/26.3000/API.Development.Kit.WIN.26.3000.zip
- acVersion: 27
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/27.3001/API.Development.Kit.WIN.27.3001.zip
- acVersion: 28
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/28.3001/API.Development.Kit.WIN.28.3001.zip
runs-on: [ windows-2019 ]
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Download Development Kit
run: python archicad-addon/Tools/download_and_unzip.py ${{ matrix.params.devKitUrl }} archicad-addon/Build/DevKits/AC${{ matrix.params.acVersion }}
- name: Generate Project
run: cmake -B archicad-addon/Build -G "Visual Studio 16 2019" -A "x64" -T "v142" -DAC_VERSION=${{ matrix.params.acVersion }} -DAC_API_DEVKIT_DIR="archicad-addon/Build/DevKits/AC${{ matrix.params.acVersion }}/Support" archicad-addon
- name: Build Debug
run: cmake --build archicad-addon/Build --config Debug
- name: Build RelWithDebInfo
run: cmake --build archicad-addon/Build --config RelWithDebInfo
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Tapir Add-On AC${{ matrix.params.acVersion }} Win
path: archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Win.apx
build_mac:
strategy:
fail-fast: false
matrix:
params:
- acVersion: 25
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/25.3002/API.Development.Kit.MAC.25.3002.zip
- acVersion: 26
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/26.3000/API.Development.Kit.MAC.26.3000.zip
- acVersion: 27
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/27.3001/API.Development.Kit.MAC.27.3001.zip
- acVersion: 28
devKitUrl: https://github.com/GRAPHISOFT/archicad-api-devkit/releases/download/28.3001/API.Development.Kit.MAC.28.3001.zip
runs-on: [ macos-13 ]
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Download Development Kit
run: python3 archicad-addon/Tools/download_and_unzip.py ${{ matrix.params.devKitUrl }} archicad-addon/Build/DevKits/AC${{ matrix.params.acVersion }}
- name: Generate Project
run: cmake -B archicad-addon/Build -G "Xcode" -DAC_VERSION=${{ matrix.params.acVersion }} -DAC_API_DEVKIT_DIR="archicad-addon/Build/DevKits/AC${{ matrix.params.acVersion }}/Support" archicad-addon
- name: Build Debug
run: cmake --build archicad-addon/Build --config Debug
- name: Build RelWithDebInfo
run: cmake --build archicad-addon/Build --config RelWithDebInfo
- name: Create zip file
run: ditto -c -k --keepParent archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Mac.bundle archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Mac.zip
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: Tapir Add-On AC${{ matrix.params.acVersion }} Mac
path: archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Mac.zip