Fix memory leak in G3D::Array #423
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: Windows build | |
on: [push] | |
env: | |
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) | |
BUILD_TYPE: Release | |
REPO_DIR : ${{github.workspace}} | |
BUILD_DIR: ${{github.workspace}}/bin/builddir | |
BOOST_TOOLSET: "msvc" | |
BOOST_VERSION: "1.79.0" | |
BOOST_INSTALL_DIR: "${{github.workspace}}/bin" | |
jobs: | |
build: | |
runs-on: windows-2022 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
path: ${{env.REPO_DIR}} | |
- name: Create Build Environment | |
run: | | |
echo "GITHUB_SHORT_REV=$(git rev-parse --short HEAD)" >> $env:GITHUB_ENV | |
echo "ARCHIVE_FILENAME=${{ github.event.repository.name }}-$(git rev-parse --short HEAD).zip" >> $env:GITHUB_ENV | |
cmake -E make_directory ${{ env.BUILD_DIR }} | |
# install dependencies | |
- name: Cache Windows boost | |
uses: actions/cache@v2 | |
id: cache-boost | |
with: | |
path: "${{env.BOOST_INSTALL_DIR}}/boost" | |
key: ${{ runner.os }}-${{ hashFiles('.github/workflows/windows.yml') }} | |
- if: steps.cache-boost.outputs.cache-hit != 'true' | |
name: Install boost | |
uses: MarkusJx/[email protected] | |
id: install-boost | |
with: | |
# REQUIRED: Specify the required boost version | |
# A list of supported versions can be found here: | |
# https://github.com/actions/boost-versions/blob/main/versions-manifest.json | |
boost_version: ${{env.BOOST_VERSION}} | |
# OPTIONAL: Specify a toolset on windows | |
toolset: ${{env.BOOST_TOOLSET}} | |
# OPTIONAL: Specify a custon install location | |
boost_install_dir: ${{env.BOOST_INSTALL_DIR}} | |
platform_version: 2022 | |
# NOTE: If a boost version matching all requirements cannot be found, | |
# this build step will fail | |
- name: Configure | |
env: | |
BOOST_ROOT: "${{env.BOOST_INSTALL_DIR}}/boost/boost" | |
run: cmake -B ${{env.BUILD_DIR}} -S ${{env.REPO_DIR}} | |
- name: Build | |
env: | |
MAKEFLAGS: "-j8" | |
run: cmake --build ${{env.BUILD_DIR}} --config ${{env.BUILD_TYPE}} | |
- name: Archive files | |
run: | | |
cd ${{env.BUILD_DIR}}/bin | |
7z a -tzip ${{env.ARCHIVE_FILENAME}} x64_Release | |
- name: Archive this artefact | |
uses: actions/upload-artifact@v2 | |
with: | |
name: snapshot | |
path: "${{env.BUILD_DIR}}/bin/${{env.ARCHIVE_FILENAME}}" | |
notify: | |
name: Discord Notification | |
runs-on: ubuntu-20.04 | |
permissions: | |
contents: none | |
needs: # make sure the notification is sent AFTER the jobs you want included have completed | |
- build | |
if: failure() | |
steps: | |
- name: Env | |
run: | | |
echo "GIT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | |
echo "GIT_SHORT_SHA=`echo ${GITHUB_SHA} | cut -c1-8`" >> $GITHUB_ENV | |
- name: Notify | |
uses: rjstone/[email protected] | |
with: | |
severity: error | |
username: ${{env.EXPENSION_NAME}}-core | |
description: | | |
**Windows buid failed** | |
details: | | |
- **Branch:** ${{env.GIT_BRANCH}} | |
- **Pusher:** ${{github.event.pusher.name}} | |
- **Author:** ${{github.event.head_commit.author.name}} | |
- **Commit:** [${{github.repository}}/${{env.GIT_SHORT_SHA}}](${{github.server_url}}/${{ github.repository }}/commit/${{github.sha}}) | |
- **Build log:** [actions/runs/${{github.run_id}}](${{github.server_url}}/${{github.repository}}/actions/runs/${{github.run_id}}) | |
footer: Next time ${{github.event.pusher.name}}! | |
webhookUrl: ${{ secrets.DISCORD_WEBHOOK }} | |
avatarUrl: https://github.githubassets.com/images/modules/logos_page/Octocat.png |