-
-
Notifications
You must be signed in to change notification settings - Fork 343
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
220 changed files
with
2,318 additions
and
4,892 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
name: pyRevitCI | ||
on: [push] | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
steps: | ||
# under $GITHUB_WORKSPACE | ||
- uses: actions/checkout@v2 | ||
- uses: snickerbockers/submodules-init@v4 | ||
|
||
- name: Setup Python 3.9 | ||
uses: actions/setup-python@v2.2.2 | ||
with: | ||
python-version: 3.9 | ||
|
||
- name: Install pipenv | ||
run: | | ||
pip install pipenv | ||
pipenv install | ||
- name: Check build environment | ||
run: pipenv run pyrevit check | ||
|
||
- name: Build Binaries | ||
run: | | ||
pipenv run pyrevit set year | ||
pipenv run pyrevit set build | ||
pipenv run pyrevit set products | ||
pipenv run pyrevit build all | ||
- name: Get Build Version | ||
id: buildversion | ||
uses: juliangruber/read-file-action@v1 | ||
with: | ||
path: pyrevitlib/pyrevit/version | ||
|
||
- name: Sign Binaries | ||
uses: skymatic/code-sign-action@v1 | ||
with: | ||
certificate: '${{ secrets.CERTIFICATE }}' | ||
password: '${{ secrets.PASSWORD }}' | ||
certificatesha1: '${{ secrets.CERTIFICATESHA1 }}' | ||
certificatename: '${{ secrets.CERTIFICATENAME }}' | ||
description: 'pyRevit' | ||
timestampUrl: 'http://timestamp.digicert.com' | ||
folder: 'bin' | ||
recursive: true | ||
|
||
- name: Build Installers | ||
run: | | ||
pipenv run pyrevit build installers | ||
- name: Sign Installers | ||
uses: skymatic/code-sign-action@v1 | ||
with: | ||
certificate: '${{ secrets.CERTIFICATE }}' | ||
password: '${{ secrets.PASSWORD }}' | ||
certificatesha1: '${{ secrets.CERTIFICATESHA1 }}' | ||
certificatename: '${{ secrets.CERTIFICATENAME }}' | ||
description: 'pyRevit' | ||
timestampUrl: 'http://timestamp.digicert.com' | ||
folder: 'dist' | ||
recursive: true | ||
|
||
# default retention period is 90 days | ||
# https://github.com/marketplace/actions/upload-a-build-artifact#retention-period | ||
- name: Upload Installers | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: pyrevit-installers | ||
path: | | ||
dist/pyRevit_${{ steps.buildversion.outputs.content }}_signed.exe | ||
dist/pyRevit_${{ steps.buildversion.outputs.content }}_admin_signed.exe | ||
dist/pyRevit_CLI_${{ steps.buildversion.outputs.content }}_signed.exe | ||
dist/pyRevit_CLI_${{ steps.buildversion.outputs.content }}_admin_signed.exe |
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
Empty file.
This file was deleted.
Oops, something went wrong.
Empty file.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<OutputPath>bin\$(Configuration)\</OutputPath> | ||
<PyRevitRootDir>$(MSBuildThisFileDirectory)\..\</PyRevitRootDir> | ||
|
||
<PyRevitBinDir>$(PyRevitRootDir)\bin\</PyRevitBinDir> | ||
<PyRevitEnginesDir>$(PyRevitBinDir)engines\</PyRevitEnginesDir> | ||
|
||
<PyRevitDevDir>$(PyRevitRootDir)\dev\</PyRevitDevDir> | ||
<PyRevitDevLibsDir>$(PyRevitDevDir)\libs\</PyRevitDevLibsDir> | ||
<PyRevitDevModulesDir>$(PyRevitDevDir)\modules\</PyRevitDevModulesDir> | ||
|
||
<PyRevitLibDir>$(PyRevitRootDir)\pyrevitlib\</PyRevitLibDir> | ||
<PyRevitExtDir>$(PyRevitRootDir)\extensions\</PyRevitExtDir> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<OutputType>Library</OutputType> | ||
<TargetFramework>net48</TargetFramework> | ||
<PlatformTarget>x64</PlatformTarget> | ||
<AppendTargetFrameworkToOutputPath>False</AppendTargetFrameworkToOutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Debug'"> | ||
<DefineConstants>$(DefineConstants);DEBUG;TRACE</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup Condition="'$(Configuration)'=='Release'"> | ||
<DefineConstants>$(DefineConstants);RELEASE</DefineConstants> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<Version>4.8.8</Version> | ||
<Copyright>Copyright © 2014-2021</Copyright> | ||
<Company>pyRevitLabs.io</Company> | ||
</PropertyGroup> | ||
</Project> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
</Project> |
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
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
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
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
Oops, something went wrong.