New command: GetDetailsOfElements (#103) #218
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: Archicad Add-On Build | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- '*' | |
jobs: | |
build_win: | |
strategy: | |
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.2000/API.Development.Kit.WIN.28.2000.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 | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Win.apx | |
draft: true | |
allowUpdates: true | |
token: ${{ secrets.GITHUB_TOKEN }} | |
build_mac: | |
strategy: | |
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.2000/API.Development.Kit.MAC.28.2000.zip | |
runs-on: [ macos-12 ] | |
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: Code sign and notarize | |
run: | | |
echo ${{ secrets.CODE_SIGN_CERT }} | base64 --decode > certificate.p12 | |
./archicad-addon/Tools/code_sign_and_notarize.sh \ | |
certificate.p12 \ | |
${{ secrets.CODE_SIGN_CERT_PWD }} \ | |
"Developer ID Application: enzyme apd Limited (${{ secrets.TEAM_ID }})" \ | |
archicad-addon/Tools/addon.entitlements \ | |
${{ secrets.APPLE_ID }} \ | |
${{ secrets.APPLE_ID_PWD }} \ | |
${{ secrets.TEAM_ID }} \ | |
archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Mac.bundle | |
- 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 | |
- name: Create Release | |
if: startsWith(github.ref, 'refs/tags/') | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: archicad-addon/Build/RelWithDebInfo/TapirAddOn_AC${{ matrix.params.acVersion }}_Mac.zip | |
draft: true | |
allowUpdates: true | |
token: ${{ secrets.GITHUB_TOKEN }} |