diff --git a/.github/workflows/app_build.yml b/.github/workflows/app_build.yml index 6f1f43cc7..a76679d25 100644 --- a/.github/workflows/app_build.yml +++ b/.github/workflows/app_build.yml @@ -457,137 +457,3 @@ jobs: else conan install . --output-folder=./build --build=missing -c tools.cmake.cmaketoolchain:generator=Ninja -s compiler.cppstd=20 -s build_type=Release fi - - cmake --preset conan-release -DQT_INSTALL_DIR:PATH=${{ env.QT_INSTALL_DIR }} \ - -DBUILD_DOCUMENTATION:BOOL=${{ env.BUILD_DOCUMENTATION }} \ - -DBUILD_PACKAGE:BOOL=${{ env.BUILD_PACKAGE }} \ - -DANALYTICS_API_SECRET:STRING=${{ secrets.ANALYTICS_API_SECRET }} \ - -DANALYTICS_MEASUREMENT_ID:STRING=${{ secrets.ANALYTICS_MEASUREMENT_ID }} - cmake --build --preset conan-release --target package - # Delete conan build and source folders - conan cache clean --source --build --download --temp - ccache --show-stats -vv || ccache --show-stats || true - - - name: Setup tmate session - if: ${{ failure() }} - uses: mxschmitt/action-tmate@v3 - - - name: Test bed Sign inner portable executable files and exe package (Windows 2022) - working-directory: ./build - if: (matrix.os == 'windows-2022') - shell: powershell - run: | - $installer_exe = Get-ChildItem -Filter "${{ matrix.BINARY_PKG_PATH }}/*.${{ env.BINARY_EXT }}" -File | Select-Object -First 1 | % { $_.FullName} - echo $installer_exe - echo "$installer_exe" - - - name: Sign inner portable executable files and exe package (Windows 2022) - working-directory: ./build - # if: (runner.os == 'Windows') - if: contains(github.ref, 'refs/tags') && (matrix.os == 'windows-2022') - shell: powershell - run: | - # Install signpath - Install-Module -Name SignPath -Force - - # Sign the OpenStudioApp.exe, put the signed version in place - Submit-SigningRequest ` - -InputArtifactPath "Products/OpenStudioApp.exe" ` - -CIUserToken "${{ secrets.SIGNPATH_CI_TOKEN }}" ` - -OrganizationId "97f757f1-cd69-467b-b87b-db3eb5102a57" ` - -ProjectSlug "OpenStudioApplication" ` - -SigningPolicySlug "No_Approval_Release_GHA" ` - -OutputArtifactPath "Products/OpenStudioApp.exe" ` - -WaitForCompletion -Force - - # Repackage - cpack - - # Sign the .exe installer as well - $installer_exe = Get-ChildItem -Filter "${{ matrix.BINARY_PKG_PATH }}/*.${{ env.BINARY_EXT }}" -File | Select-Object -First 1 | % { $_.FullName} - - Submit-SigningRequest ` - -InputArtifactPath "$installer_exe" ` - -CIUserToken "${{ secrets.SIGNPATH_CI_TOKEN }}" ` - -OrganizationId "97f757f1-cd69-467b-b87b-db3eb5102a57" ` - -ProjectSlug "OpenStudioApplication" ` - -SigningPolicySlug "No_Approval_Release_GHA" ` - -OutputArtifactPath "$installer_exe" ` - -WaitForCompletion -Force - - - name: Archive binary artifacts - uses: actions/upload-artifact@v4 - # build/_CPack_Packages/win64/IFW/*.exe - # build/_CPack_Packages/Linux/DEB/*.deb - # build/_CPack_Packages/Darwin/IFW/*.dmg - with: - name: OpenStudioApplication-${{ env.OS_APP_VERSION }}.${{ github.sha }}-${{ matrix.os }}.${{ env.BINARY_EXT }} - path: build/${{ matrix.BINARY_PKG_PATH }}/*.${{ env.BINARY_EXT }} - - - name: Archive TGZ or ZIP artifacts - uses: actions/upload-artifact@v4 - with: - name: OpenStudioApplication-${{ env.OS_APP_VERSION }}.${{ github.sha }}-${{ matrix.os }}.${{ env.COMPRESSED_EXT }} - path: build/${{ matrix.COMPRESSED_PKG_PATH }}/*.${{ env.COMPRESSED_EXT }} - - - name: Test - working-directory: ./build - shell: bash - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: | - Xvfb :99 & - export DISPLAY=:99 - ctest -j -T test --output-on-failure --no-compress-output -C $BUILD_TYPE || true - - - name: Archive test results? - uses: actions/upload-artifact@v4 - with: - name: OpenStudioApplication-${{ env.OS_APP_VERSION }}.${{ github.sha }}-${{ matrix.os }}-Test.xml - path: build/Testing/**/*.xml - - - name: Benchmark - working-directory: ./build - shell: bash - # Execute tests defined by the CMake configuration. - # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail - run: | - Xvfb :99 & - export DISPLAY=:99 - Products/SpacesSurfaces_Benchmark --benchmark_out_format=csv --benchmark_out='bench_results_SpacesSurfaces.csv' || true - - - name: Archive benchmark results? - uses: actions/upload-artifact@v4 - with: - name: OpenStudioApplication-${{ env.OS_APP_VERSION }}.${{ github.sha }}-${{ matrix.os }}-bench_results.csv - path: build/bench_results_*.csv - - - name: Upload Binary installer to release - if: contains(github.ref, 'refs/tags') - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: build/${{ matrix.BINARY_PKG_PATH }}/*.${{ env.BINARY_EXT }} - tag: ${{ github.ref }} - overwrite: true - file_glob: true - - - name: Upload TGZ or ZIP to release - if: contains(github.ref, 'refs/tags') - uses: svenstaro/upload-release-action@v2 - with: - repo_token: ${{ secrets.GITHUB_TOKEN }} - file: build/${{ matrix.COMPRESSED_PKG_PATH }}/*.${{ env.COMPRESSED_EXT }} - tag: ${{ github.ref }} - overwrite: true - file_glob: true - - - - name: Delete binary packages - working-directory: ./build/ - shell: bash - run: | - ls OpenStudioApplication-* - /bin/rm OpenStudioApplication-*${{ env.COMPRESSED_EXT }} || true - /bin/rm OpenStudioApplication-*${{ env.BINARY_EXT }} || true - ls OpenStudioApplication-* || true