Skip to content

Commit

Permalink
Merge pull request #1299 from ericmehl/publish-windows-release
Browse files Browse the repository at this point in the history
Publish Windows releases
  • Loading branch information
johnhaddon authored Sep 23, 2022
2 parents b3aa12a + 67c257b commit b23e827
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
linux-python2,
linux-python2-debug,
linux-python3,
windows-python3,
windows-python3-debug
]

include:
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
options: .github/workflows/main/options.windows
dependenciesURL: https://github.com/hypothetical-inc/gafferDependencies/releases/download/6.1.0/gafferDependencies-6.1.0-Python3-windows.zip
tests: testCore testCorePython testScene testImage testAlembic testUSD testVDB
publish: false
publish: true

- name: windows-python3-debug
os: windows-2019
Expand All @@ -93,7 +95,10 @@ jobs:
sdk: 10.0.17763.0

- name: Install toolchain (Windows)
run: python -m pip install scons
run: |
python -m pip install scons
echo "PACKAGE_COMMAND=7z a -tzip" >> $env:GITHUB_ENV
echo "PACKAGE_EXTENSION=zip" >> $env:GITHUB_ENV
if: runner.os == 'Windows'

- name: Install toolchain (MacOS)
Expand All @@ -107,6 +112,8 @@ jobs:
# _before_ anything we specify with `-isystem`, despite documentation to the
# contrary. So we nuke the headers.
rm -rf /usr/local/include/*
echo PACKAGE_COMMAND=tar -czf >> $GITHUB_ENV
echo PACKAGE_EXTENSION=tar.gz >> $GITHUB_ENV
if: runner.os == 'macOS'

- name: Install toolchain (Linux)
Expand All @@ -121,6 +128,8 @@ jobs:
# in later steps.
echo $PATH > $GITHUB_PATH
echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH >> $GITHUB_ENV
echo PACKAGE_COMMAND=tar -czf >> $GITHUB_ENV
echo PACKAGE_EXTENSION=tar.gz >> $GITHUB_ENV
shell: bash
if: runner.os == 'Linux'

Expand Down Expand Up @@ -152,7 +161,7 @@ jobs:
shell: bash

- name: Cache
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: sconsCache
key: ${{ runner.os }}-${{ matrix.containerImage }}-${{env.CORTEX_DEPENDENCIES_HASH}}-${{ matrix.buildType }}-${{ github.sha }}
Expand All @@ -175,19 +184,19 @@ jobs:

- name: Build Package
run: |
tar -czf ${{ env.CORTEX_BUILD_NAME }}.tar.gz ${{ env.CORTEX_BUILD_NAME }}
${{ env.PACKAGE_COMMAND }} ${{ env.CORTEX_BUILD_NAME }}.${{env.PACKAGE_EXTENSION}} ${{ env.CORTEX_BUILD_NAME }}
if: matrix.publish

- uses: actions/upload-artifact@v2
with:
name: ${{ env.CORTEX_BUILD_NAME }}
path: ${{ env.CORTEX_BUILD_NAME }}.tar.gz
path: ${{ env.CORTEX_BUILD_NAME }}.${{ env.PACKAGE_EXTENSION }}
if: matrix.publish

- name: Publish Release
run: |
./.github/workflows/main/publishRelease.py --archive ${{ env.CORTEX_BUILD_NAME }}.tar.gz --repo ${{ github.repository }} --releaseId ${{ env.CORTEX_GITHUB_RELEASEID }}
if: matrix.publish && env.CORTEX_GITHUB_RELEASEID != '' && runner.os != 'Windows'
python ./.github/workflows/main/publishRelease.py --archive ${{ env.CORTEX_BUILD_NAME }}.${{ env.PACKAGE_EXTENSION }} --repo ${{ github.repository }} --releaseId ${{ env.CORTEX_GITHUB_RELEASEID }}
if: matrix.publish && env.CORTEX_GITHUB_RELEASEID != ''

env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
8 changes: 8 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
10.4.x.x (relative to 10.4.2.0)
========

Build
-----

- Added Windows package to build artifacts and release binaries.

10.4.2.0 (relative to 10.4.1.2)
========

Expand Down

0 comments on commit b23e827

Please sign in to comment.