Skip to content

Commit

Permalink
Add AC25 build.
Browse files Browse the repository at this point in the history
  • Loading branch information
kovacsv committed Jul 9, 2023
1 parent b84ff2d commit c4bd1eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/archicad_addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
strategy:
matrix:
os-type: [windows-2022]
ac-version: [25, 26]
configuration: [Debug, RelWithDebInfo]

steps:
Expand All @@ -31,16 +32,13 @@ jobs:
run: doskey python3=python

- name: Generate Project
run: python3 archicad-addon/build.py --acVersion 26

- name: Build
run: cmake --build archicad-addon/Build/AC26 --config ${{matrix.configuration}}
run: python3 archicad-addon/build.py --acVersion ${{matrix.ac-version}} --config ${{matrix.configuration}}

- name: Create Release
if: startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
artifacts: archicad-addon/Build/AC25/RelWithDebInfo/TapirAddOn_AC25_Win.apx
artifacts: archicad-addon/Build/AC${{matrix.ac-version}}/RelWithDebInfo/TapirAddOn_AC${{matrix.ac-version}}_Win.apx
draft: true
allowUpdates: true
token: ${{ secrets.GITHUB_TOKEN }}
4 changes: 3 additions & 1 deletion archicad-addon/build.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
def Main ():
parser = argparse.ArgumentParser ()
parser.add_argument ('--acVersion', dest = 'acVersion', type = str, required = True, help = 'Version of the target Archicad.')
parser.add_argument ('--config', dest = 'config', type = str, required = True, help = 'Build configuration.')
args = parser.parse_args ()

currentPath = os.path.dirname (os.path.abspath (__file__))
Expand Down Expand Up @@ -45,7 +46,8 @@ def Main ():

buildResult = subprocess.call ([
'cmake',
'--build', 'Build/AC{0}'.format (args.acVersion)
'--build', 'Build/AC{0}'.format (args.acVersion),
'--config', args.config
])

if buildResult != 0:
Expand Down

0 comments on commit c4bd1eb

Please sign in to comment.