mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-09 09:39:41 +02:00
Merge pull request #719 from kasenvr/gha-master-ci
GHA builds for merges to master
This commit is contained in:
commit
97b7aa18e4
3 changed files with 141 additions and 178 deletions
308
.github/workflows/master_build.yml
vendored
308
.github/workflows/master_build.yml
vendored
|
@ -3,114 +3,60 @@ name: Master CI Build
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- gha-master-ci
|
||||||
|
# FIXME: Change target branch to "master" before merging into "master" branch.
|
||||||
|
|
||||||
env:
|
env:
|
||||||
#APP_NAME: gpu-frame-player
|
|
||||||
APP_NAME: interface
|
APP_NAME: interface
|
||||||
BUILD_TYPE: Release
|
BUILD_TYPE: Release
|
||||||
BUCKET_NAME: hifi-gh-builds
|
BUILD_NUMBER: ${{ github.run_number }}
|
||||||
CI_BUILD: Github
|
CI_BUILD: Github
|
||||||
CMAKE_BACKTRACE_URL: https://highfidelity.sp.backtrace.io:6098
|
|
||||||
CMAKE_BACKTRACE_TOKEN: ${{ secrets.backtrace_token }}
|
|
||||||
CMAKE_BACKTRACE_SYMBOLS_TOKEN: ${{ secrets.backtrace_symbols_token }}
|
|
||||||
GIT_COMMIT: ${{ github.sha }}
|
GIT_COMMIT: ${{ github.sha }}
|
||||||
HIFI_VCPKG_BOOTSTRAP: true
|
# VCPKG did not build well on OSX disabling HIFI_VCPKG_BOOTSTRAP, which invokes a download to a working version of vcpkg
|
||||||
LAUNCHER_HMAC_SECRET: ${{ secrets.launcher_hmac_secret }}
|
# HIFI_VCPKG_BOOTSTRAP: true
|
||||||
OCULUS_APP_ID: '${{ secrets.oculus_app_id }}'
|
|
||||||
RELEASE_TYPE: PRODUCTION
|
RELEASE_TYPE: PRODUCTION
|
||||||
RELEASE_DYNAMODB_V2: ReleaseManager2-ReleaseQueue-prod
|
RELEASE_NUMBER: ${{ github.run_number }}
|
||||||
STABLE_BUILD: 0
|
STABLE_BUILD: 0
|
||||||
|
UPLOAD_BUCKET: athena-public
|
||||||
|
|
||||||
|
# OSX-specific variables
|
||||||
# OSX specific variables
|
|
||||||
DEVELOPER_DIR: /Applications/Xcode_11.2.app/Contents/Developer
|
DEVELOPER_DIR: /Applications/Xcode_11.2.app/Contents/Developer
|
||||||
MACOSX_DEPLOYMENT_TARGET: '10.11'
|
MACOSX_DEPLOYMENT_TARGET: '10.11'
|
||||||
|
|
||||||
# WIN32 specific variables
|
# WIN-specific variables
|
||||||
PreferredToolArchitecture: X64
|
PreferredToolArchitecture: X64
|
||||||
|
|
||||||
# Mac OS
|
|
||||||
#PLATFORM_CMAKE_GENERATOR=Xcode
|
|
||||||
#PLATFORM_BUILD_ARGUMENTS=--config Release --target package
|
|
||||||
#ARTIFACT_EXPRESSION=build/*.dmg,build/*.zip
|
|
||||||
|
|
||||||
# Windows
|
|
||||||
#PLATFORM_CMAKE_GENERATOR=Visual Studio 15 2017 Win64
|
|
||||||
#PLATFORM_BUILD_ARGUMENTS=--target package --config release
|
|
||||||
#ARTIFACT_EXPRESSION=build/*.exe,build/*.zip,*-symbols.zip
|
|
||||||
|
|
||||||
# Ubuntu
|
|
||||||
#PLATFORM_CMAKE_GENERATOR=Unix Makefiles
|
|
||||||
#PLATFORM_BUILD_ARGUMENTS=--target all -- -j4
|
|
||||||
#ARTIFACT_EXPRESSION=build/assignment-client/**,build/domain-server/**,build/ice-server/ice-server,build/tools/ice-client/ice-client,build/tools/ac-client/ac-client,build/tools/oven,build/ext/makefiles/nvtt/project/lib/**,build/ext/makefiles/quazip/project/lib/**
|
|
||||||
|
|
||||||
# Android
|
|
||||||
# branch: master
|
|
||||||
# GA_TRACKING_ID: ${{ secrets.ga_tracking_id }}
|
|
||||||
# ANDROID_OAUTH_CLIENT_SECRET=${MASKED_ANDROID_OAUTH_CLIENT_SECRET_NIGHTLY}
|
|
||||||
# ANDROID_OAUTH_CLIENT_ID=6c7d2349c0614640150db37457a1f75dce98a28ffe8f14d47f6cfae4de5b262a
|
|
||||||
# ANDROID_OAUTH_REDIRECT_URI=https://dev-android-interface.highfidelity.com/auth
|
|
||||||
# branch: !master
|
|
||||||
# GA_TRACKING_ID=UA-39558647-11
|
|
||||||
# ANDROID_OAUTH_CLIENT_SECRET=${MASKED_ANDROID_OAUTH_CLIENT_SECRET_RELEASE}
|
|
||||||
# ANDROID_OAUTH_CLIENT_ID= c1063ea5d0b0c405e0c9cd77351328e211a91496a3f25985a99e861f1661db1d
|
|
||||||
# ANDROID_OAUTH_REDIRECT_URI=https://android-interface.highfidelity.com/auth
|
|
||||||
# ARTIFACT_EXPRESSION=android/*.apk
|
|
||||||
# ANDROID_APK_NAME=HighFidelity-Beta-PR${RELEASE_NUMBER}-${GIT_COMMIT_SHORT}.apk
|
|
||||||
# ANDROID_BUILT_APK_NAME=interface-debug.apk
|
|
||||||
# ANDROID_APP=interface
|
|
||||||
# ANDROID_BUILD_DIR=debug
|
|
||||||
# ANDROID_BUILD_TARGET=assembleDebug
|
|
||||||
# STABLE_BUILD=0
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
generate_build_number:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Generate build number
|
|
||||||
id: buildnumber
|
|
||||||
uses: highfidelity/build-number@v3
|
|
||||||
with:
|
|
||||||
token: ${{secrets.github_token}}
|
|
||||||
- name: Upload build number
|
|
||||||
uses: actions/upload-artifact@v1
|
|
||||||
with:
|
|
||||||
name: BUILD_NUMBER
|
|
||||||
path: BUILD_NUMBER
|
|
||||||
|
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [windows-latest, macOS-latest]
|
os: [windows-latest, macOS-latest, ubuntu-18.04]
|
||||||
build_type: [full, client]
|
# build_type: [full, client]
|
||||||
#os: [windows-latest, macOS-latest, ubuntu-latest]
|
build_type: [full]
|
||||||
# exclude:
|
include:
|
||||||
# - os: ubuntu-latest
|
- os: ubuntu-18.04
|
||||||
# build_type: client
|
build_type: full
|
||||||
|
apt-dependencies: mesa-common-dev libegl1 libglvnd-dev libdouble-conversion1 libpulse0
|
||||||
|
fail-fast: false
|
||||||
runs-on: ${{matrix.os}}
|
runs-on: ${{matrix.os}}
|
||||||
needs: generate_build_number
|
|
||||||
steps:
|
steps:
|
||||||
- name: Download build number
|
- name: Report Build Number
|
||||||
uses: actions/download-artifact@v1
|
shell: bash
|
||||||
with:
|
run: |
|
||||||
name: BUILD_NUMBER
|
echo "Build number: $BUILD_NUMBER"
|
||||||
- name: Restore build number
|
- name: Configure build environment 1
|
||||||
id: buildnumber
|
|
||||||
uses: highfidelity/build-number@v3
|
|
||||||
with:
|
|
||||||
output_name: RELEASE_NUMBER
|
|
||||||
- name: Configure Build Environment 1
|
|
||||||
shell: bash
|
shell: bash
|
||||||
id: buildenv1
|
id: buildenv1
|
||||||
run: |
|
run: |
|
||||||
echo ::set-env name=UPLOAD_PREFIX::master
|
echo ::set-env name=UPLOAD_PREFIX::master
|
||||||
echo ::set-env name=GIT_COMMIT_SHORT::`echo $GIT_COMMIT | cut -c1-7`
|
echo ::set-env name=GIT_COMMIT_SHORT::`echo $GIT_COMMIT | cut -c1-7`
|
||||||
|
echo ::set-env name=JOB_NAME::"build (${{matrix.os}}, ${{matrix.build_type}})"
|
||||||
# Linux build variables
|
# Linux build variables
|
||||||
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
|
if [[ "${{ matrix.os }}" = "ubuntu-"* ]]; then
|
||||||
|
echo ::set-env name=PYTHON_EXEC::python3
|
||||||
echo ::set-env name=INSTALLER_EXT::tgz
|
echo ::set-env name=INSTALLER_EXT::tgz
|
||||||
|
echo ::set-env name=CMAKE_BUILD_EXTRA::"-- -j3"
|
||||||
|
echo ::set-env name=CMAKE_EXTRA::"-DBUILD_TOOLS:BOOLEAN=FALSE -DHIFI_PYTHON_EXEC:FILEPATH=$(which python3)"
|
||||||
fi
|
fi
|
||||||
# Mac build variables
|
# Mac build variables
|
||||||
if [ "${{ matrix.os }}" = "macOS-latest" ]; then
|
if [ "${{ matrix.os }}" = "macOS-latest" ]; then
|
||||||
|
@ -118,8 +64,8 @@ jobs:
|
||||||
echo ::set-env name=ZIP_COMMAND::zip
|
echo ::set-env name=ZIP_COMMAND::zip
|
||||||
echo ::set-env name=ZIP_ARGS::-r
|
echo ::set-env name=ZIP_ARGS::-r
|
||||||
echo ::set-env name=INSTALLER_EXT::dmg
|
echo ::set-env name=INSTALLER_EXT::dmg
|
||||||
echo ::set-env name=SYMBOL_REGEX::dSYM
|
echo ::set-env name=CMAKE_EXTRA::"-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -G Xcode"
|
||||||
echo "::set-output name=symbols_archive::${{ steps.buildnumber.outputs.build_number }}-${{ matrix.build_type }}-mac-symbols.zip"
|
echo "::set-output name=symbols_archive::${BUILD_NUMBER}-${{ matrix.build_type }}-mac-symbols.zip"
|
||||||
fi
|
fi
|
||||||
# Windows build variables
|
# Windows build variables
|
||||||
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
||||||
|
@ -127,40 +73,28 @@ jobs:
|
||||||
echo ::set-env name=ZIP_COMMAND::7z
|
echo ::set-env name=ZIP_COMMAND::7z
|
||||||
echo ::set-env name=ZIP_ARGS::a
|
echo ::set-env name=ZIP_ARGS::a
|
||||||
echo ::set-env name=INSTALLER_EXT::exe
|
echo ::set-env name=INSTALLER_EXT::exe
|
||||||
|
echo ::set-env name=CMAKE_EXTRA::"-A x64"
|
||||||
echo "::set-env name=SYMBOL_REGEX::\(exe\|dll\|pdb\)"
|
echo "::set-env name=SYMBOL_REGEX::\(exe\|dll\|pdb\)"
|
||||||
echo "::set-output name=symbols_archive::${{ steps.buildnumber.outputs.build_number }}-${{ matrix.build_type }}-win-symbols.zip"
|
echo "::set-output name=symbols_archive::${BUILD_NUMBER}-${{ matrix.build_type }}-win-symbols.zip"
|
||||||
|
# echo ::set-env name=HF_PFX_PASSPHRASE::${{secrets.pfx_key}}
|
||||||
|
# echo "::set-env name=HF_PFX_FILE::${{runner.workspace}}\build\codesign.pfx"
|
||||||
fi
|
fi
|
||||||
# Configuration is broken into two steps because you can't set an env var and also reference it in the same step
|
# Configuration is broken into two steps because you can't set an env var and also reference it in the same step
|
||||||
- name: Configure Build Environment 2
|
- name: Configure build environment 2
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo "${{ steps.buildenv1.outputs.symbols_archive }}"
|
echo "${{ steps.buildenv1.outputs.symbols_archive }}"
|
||||||
echo ::set-env name=ARTIFACT_PATTERN::HighFidelity-Beta-*.$INSTALLER_EXT
|
echo ::set-env name=ARTIFACT_PATTERN::Vircadia-Alpha-*.$INSTALLER_EXT
|
||||||
# Build type variables
|
# Build type variables
|
||||||
if [ "${{ matrix.build_type }}" = "full" ]; then
|
if [ "${{ matrix.build_type }}" = "full" ]; then
|
||||||
echo ::set-env name=CLIENT_ONLY::FALSE
|
echo ::set-env name=CLIENT_ONLY::FALSE
|
||||||
echo ::set-env name=INSTALLER::HighFidelity-Beta-$RELEASE_NUMBER-$GIT_COMMIT_SHORT.$INSTALLER_EXT
|
echo ::set-env name=INSTALLER::Vircadia-Alpha-$BUILD_NUMBER-$GIT_COMMIT_SHORT.$INSTALLER_EXT
|
||||||
else
|
else
|
||||||
echo ::set-env name=CLIENT_ONLY::TRUE
|
echo ::set-env name=CLIENT_ONLY::TRUE
|
||||||
echo ::set-env name=INSTALLER::HighFidelity-Beta-Interface-$RELEASE_NUMBER-$GIT_COMMIT_SHORT.$INSTALLER_EXT
|
echo ::set-env name=INSTALLER::Vircadia-Alpha-Interface-$BUILD_NUMBER-$GIT_COMMIT_SHORT.$INSTALLER_EXT
|
||||||
fi
|
fi
|
||||||
# Linux build variables
|
- name: Clear working directory
|
||||||
if [ "${{ matrix.os }}" = "ubuntu-latest" ]; then
|
if: startsWith(matrix.os, 'windows')
|
||||||
echo ::set-env name=PYTHON_EXEC::python3
|
|
||||||
echo ::set-env name=CMAKE_EXTRA::""
|
|
||||||
fi
|
|
||||||
# Mac build variables
|
|
||||||
if [ "${{ matrix.os }}" = "macOS-latest" ]; then
|
|
||||||
echo ::set-env name=CMAKE_EXTRA::"-DCMAKE_XCODE_ATTRIBUTE_CODE_SIGNING_REQUIRED=OFF -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl -G Xcode"
|
|
||||||
fi
|
|
||||||
# Windows build variables
|
|
||||||
if [ "${{ matrix.os }}" = "windows-latest" ]; then
|
|
||||||
echo ::set-env name=CMAKE_EXTRA::"-A x64"
|
|
||||||
echo ::set-env name=HF_PFX_PASSPHRASE::${{secrets.pfx_key}}
|
|
||||||
echo "::set-env name=HF_PFX_FILE::${{runner.workspace}}\build\codesign.pfx"
|
|
||||||
fi
|
|
||||||
- name: Clear Working Directory
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{runner.workspace}}
|
working-directory: ${{runner.workspace}}
|
||||||
run: rm -rf ./*
|
run: rm -rf ./*
|
||||||
|
@ -168,89 +102,119 @@ jobs:
|
||||||
with:
|
with:
|
||||||
submodules: true
|
submodules: true
|
||||||
fetch-depth: 1
|
fetch-depth: 1
|
||||||
- name: Create Build Directory
|
- name: Install dependencies
|
||||||
run: cmake -E make_directory ${{runner.workspace}}/build
|
if: startsWith(matrix.os, 'ubuntu')
|
||||||
- name: Decrypt Signing Key (Windows)
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: gpg --batch --yes -o codesign.pfx --passphrase "${{secrets.gpg_symmetric_key}}" --decrypt $GITHUB_WORKSPACE/tools/ci-scripts/codesign.pfx.gpg
|
run: |
|
||||||
- name: Import Signing Key (Windows)
|
echo "Installing Python Modules:"
|
||||||
if: matrix.os == 'windows-latest'
|
pip3 install distro || exit 1
|
||||||
working-directory: ${{runner.workspace}}/build
|
echo "Updating apt repository index"
|
||||||
shell: powershell
|
sudo apt update || exit 1
|
||||||
run: |
|
echo "Installing apt packages"
|
||||||
$mypwd=ConvertTo-SecureString -String ${{ secrets.pfx_key }} -Force -AsPlainText
|
sudo apt install -y ${{ matrix.apt-dependencies }} || exit 1
|
||||||
Import-PfxCertificate -Password $mypwd -CertStoreLocation Cert:\CurrentUser\My -FilePath ${{runner.workspace}}\build\codesign.pfx
|
|
||||||
Import-PfxCertificate -Password $mypwd -CertStoreLocation Cert:\LocalMachine\My -FilePath ${{runner.workspace}}\build\codesign.pfx
|
|
||||||
- name: Install Python modules
|
- name: Install Python modules
|
||||||
if: matrix.os != 'ubuntu-latest'
|
if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
shell: bash
|
shell: bash
|
||||||
run: $PYTHON_EXEC -m pip install boto3 PyGithub
|
run: $PYTHON_EXEC -m pip install boto3 PyGithub
|
||||||
|
- name: Create build environment
|
||||||
|
shell: bash
|
||||||
|
run: cmake -E make_directory "${{runner.workspace}}/build"
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCLIENT_ONLY:BOOLEAN=$CLIENT_ONLY $CMAKE_EXTRA
|
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DVCPKG_BUILD_TYPE=release -DCLIENT_ONLY:BOOLEAN=$CLIENT_ONLY -DBYPASS_SIGNING:BOOLEAN=TRUE $CMAKE_EXTRA
|
||||||
- name: Build Application
|
- name: Build application
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --build . --config $BUILD_TYPE --target $APP_NAME
|
run: cmake --build . --config $BUILD_TYPE --target $APP_NAME $CMAKE_BUILD_EXTRA
|
||||||
- name: Build Console
|
- name: Build domain server
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --build . --config $BUILD_TYPE --target packaged-server-console
|
run: cmake --build . --config $BUILD_TYPE --target domain-server $CMAKE_BUILD_EXTRA
|
||||||
- name: Build Domain Server (FullBuild)
|
- name: Build assignment client
|
||||||
if: matrix.build_type == 'full'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: cmake --build . --config $BUILD_TYPE --target domain-server
|
|
||||||
- name: Build Assignment Client (FullBuild)
|
|
||||||
if: matrix.build_type == 'full'
|
|
||||||
shell: bash
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
|
||||||
run: cmake --build . --config $BUILD_TYPE --target assignment-client
|
|
||||||
- name: Build Installer
|
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: bash
|
shell: bash
|
||||||
run: cmake --build . --config $BUILD_TYPE --target package
|
run: cmake --build . --config $BUILD_TYPE --target assignment-client $CMAKE_BUILD_EXTRA
|
||||||
- name: Sign Installer (Windows)
|
- name: Build console
|
||||||
if: matrix.os == 'windows-latest'
|
working-directory: ${{runner.workspace}}/build
|
||||||
shell: powershell
|
shell: bash
|
||||||
working-directory: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64
|
run: cmake --build . --config $BUILD_TYPE --target packaged-server-console $CMAKE_BUILD_EXTRA
|
||||||
run: .\signtool.exe sign /fd sha256 /f ${{runner.workspace}}\build\codesign.pfx /p ${{secrets.pfx_key}} /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td SHA256 ${{runner.workspace}}\build\${env:INSTALLER}
|
- name: Build installer
|
||||||
- name: Upload Artifact
|
working-directory: ${{runner.workspace}}/build
|
||||||
if: matrix.os != 'ubuntu-latest'
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Retry code from https://unix.stackexchange.com/a/137639"
|
||||||
|
function fail {
|
||||||
|
echo $1 >&2
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
function retry {
|
||||||
|
local n=1
|
||||||
|
local max=5
|
||||||
|
local delay=15
|
||||||
|
while true; do
|
||||||
|
"$@" && break || {
|
||||||
|
if [[ $n -lt $max ]]; then
|
||||||
|
((n++))
|
||||||
|
echo "Command failed. Attempt $n/$max:"
|
||||||
|
sleep $delay;
|
||||||
|
else
|
||||||
|
fail "The command has failed after $n attempts."
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
done
|
||||||
|
}
|
||||||
|
retry cmake --build . --config $BUILD_TYPE --target package $CMAKE_BUILD_EXTRA
|
||||||
|
#- name: Sign installer (Windows)
|
||||||
|
# if: startsWith(matrix.os, 'windows')
|
||||||
|
# shell: powershell
|
||||||
|
# working-directory: C:\Program Files (x86)\Windows Kits\10\bin\10.0.18362.0\x64
|
||||||
|
# run: .\signtool.exe sign /fd sha256 /f ${{runner.workspace}}\build\codesign.pfx /p ${{secrets.pfx_key}} /tr http://sha256timestamp.ws.symantec.com/sha256/timestamp /td SHA256 ${{runner.workspace}}\build\${env:INSTALLER}
|
||||||
|
- name: Output system stats
|
||||||
|
if: ${{ always() }}
|
||||||
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
shell: bash
|
||||||
|
run: |
|
||||||
|
echo "Disk usage:"
|
||||||
|
df -h
|
||||||
|
- name: Output installer logs
|
||||||
|
if: failure() && startsWith(matrix.os, 'windows')
|
||||||
|
shell: bash
|
||||||
|
working-directory: ${{runner.workspace}}/build
|
||||||
|
run: cat ./_CPack_Packages/win64/NSIS/NSISOutput.log
|
||||||
|
- name: Upload artifact
|
||||||
|
if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: ${{runner.workspace}}/build
|
working-directory: ${{runner.workspace}}/build
|
||||||
env:
|
env:
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
|
AWS_ACCESS_KEY_ID: ${{ secrets.aws_access_key_id }}
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.aws_secret_access_key }}
|
||||||
run: $PYTHON_EXEC $GITHUB_WORKSPACE/tools/ci-scripts/upload.py
|
run: $PYTHON_EXEC $GITHUB_WORKSPACE/tools/ci-scripts/upload.py
|
||||||
- name: Archive Symbols
|
#- name: Archive symbols
|
||||||
if: (matrix.os == 'windows-latest') || (matrix.os == 'macOS-latest')
|
# if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
working-directory: ${{runner.workspace}}
|
# working-directory: ${{runner.workspace}}
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
SYMBOLS_TEMP="symbols-temp"
|
# SYMBOLS_TEMP="symbols-temp"
|
||||||
mkdir $SYMBOLS_TEMP
|
# mkdir $SYMBOLS_TEMP
|
||||||
find "./build" \( -path '*/tools/gpu-frame-player/*' -or -path '*/interface/*' -or -path '*/plugins/*' \) -regex ".*\.$SYMBOL_REGEX" -exec cp -r {} $SYMBOLS_TEMP \;
|
# find "./build" \( -path '*/tools/gpu-frame-player/*' -or -path '*/interface/*' -or -path '*/plugins/*' \) -regex ".*\.$SYMBOL_REGEX" -exec cp -r {} $SYMBOLS_TEMP \;
|
||||||
cd $SYMBOLS_TEMP
|
# cd $SYMBOLS_TEMP
|
||||||
$ZIP_COMMAND $ZIP_ARGS ../${{ steps.buildenv1.outputs.symbols_archive }} .
|
# $ZIP_COMMAND $ZIP_ARGS ../${{ steps.buildenv1.outputs.symbols_archive }} .
|
||||||
- name: Upload Symbols
|
#- name: Upload symbols
|
||||||
if: (matrix.os == 'windows-latest') || (matrix.os == 'macOS-latest')
|
# if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
working-directory: ${{runner.workspace}}
|
# working-directory: ${{runner.workspace}}
|
||||||
shell: bash
|
# shell: bash
|
||||||
run: |
|
# run: |
|
||||||
curl --data-binary @${{ steps.buildenv1.outputs.symbols_archive }} "$CMAKE_BACKTRACE_URL/post?format=symbols&token=$CMAKE_BACKTRACE_SYMBOLS_TOKEN&upload_file=${{steps.buildenv1.outputs.symbols_archive}}&tag=$RELEASE_NUMBER"
|
# curl --data-binary @${{ steps.buildenv1.outputs.symbols_archive }} "$CMAKE_BACKTRACE_URL/post?format=symbols&token=$CMAKE_BACKTRACE_SYMBOLS_TOKEN&upload_file=${{steps.buildenv1.outputs.symbols_archive}}&tag=$BUILD_NUMBER"
|
||||||
# - name: Debug List Symbols
|
#- name: Debug list symbols
|
||||||
# if: (matrix.os == 'windows-latest') || (matrix.os == 'macOS-latest')
|
# if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
# working-directory: ${{runner.workspace}}
|
# working-directory: ${{runner.workspace}}
|
||||||
# shell: bash
|
# shell: bash
|
||||||
# run: |
|
# run: |
|
||||||
# unzip -v "${{runner.workspace}}/${{ steps.buildenv1.outputs.symbols_archive }}"
|
# unzip -v "${{runner.workspace}}/${{ steps.buildenv1.outputs.symbols_archive }}"
|
||||||
# - name: Debug Upload Symbols Artifact
|
#- name: Upload debug list symbols
|
||||||
# if: (matrix.os == 'windows-latest') || (matrix.os == 'macOS-latest')
|
# if: startsWith(matrix.os, 'windows') || startsWith(matrix.os, 'macOS')
|
||||||
# uses: actions/upload-artifact@v1
|
# uses: actions/upload-artifact@v1
|
||||||
# with:
|
# with:
|
||||||
# name: symbols
|
# name: symbols
|
||||||
# path: ${{runner.workspace}}/${{ steps.buildenv1.outputs.symbols_archive }}
|
# path: ${{runner.workspace}}/${{ steps.buildenv1.outputs.symbols_archive }}
|
||||||
|
|
|
@ -202,9 +202,9 @@
|
||||||
; The Inner invocation has written an uninstaller binary for us.
|
; The Inner invocation has written an uninstaller binary for us.
|
||||||
; We need to sign it if it's a production or PR build.
|
; We need to sign it if it's a production or PR build.
|
||||||
!if @PRODUCTION_BUILD@ == 1
|
!if @PRODUCTION_BUILD@ == 1
|
||||||
!if @BYPASS_SIGNING@ == 1
|
!if @BYPASS_SIGNING@ == TRUE
|
||||||
!warning "BYPASS_SIGNING set - installer will not be signed"
|
!warning "BYPASS_SIGNING set - installer will not be signed"
|
||||||
!else
|
!else
|
||||||
!system '"@SIGNTOOL_EXECUTABLE@" sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://timestamp.comodoca.com?td=sha256 /td SHA256 $%TEMP%\@UNINSTALLER_NAME@' = 0
|
!system '"@SIGNTOOL_EXECUTABLE@" sign /fd sha256 /f %HF_PFX_FILE% /p %HF_PFX_PASSPHRASE% /tr http://timestamp.comodoca.com?td=sha256 /td SHA256 $%TEMP%\@UNINSTALLER_NAME@' = 0
|
||||||
!endif
|
!endif
|
||||||
!endif
|
!endif
|
||||||
|
|
|
@ -6,19 +6,18 @@ import boto3
|
||||||
import glob
|
import glob
|
||||||
from github import Github
|
from github import Github
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
bucket_name = os.environ['BUCKET_NAME']
|
bucket_name = os.environ['UPLOAD_BUCKET']
|
||||||
upload_prefix = os.environ['UPLOAD_PREFIX']
|
upload_prefix = os.environ['UPLOAD_PREFIX']
|
||||||
release_number = os.environ['RELEASE_NUMBER']
|
release_number = os.environ['RELEASE_NUMBER']
|
||||||
full_prefix = upload_prefix + '/' + release_number[0:-2] + '/' + release_number
|
full_prefix = upload_prefix + '/' + release_number
|
||||||
S3 = boto3.client('s3')
|
S3 = boto3.client('s3')
|
||||||
path = os.path.join(os.getcwd(), os.environ['ARTIFACT_PATTERN'])
|
path = os.path.join(os.getcwd(), os.environ['ARTIFACT_PATTERN'])
|
||||||
files = glob.glob(path, recursive=False)
|
files = glob.glob(path, recursive=False)
|
||||||
for archiveFile in files:
|
for archiveFile in files:
|
||||||
filePath, fileName = os.path.split(archiveFile)
|
filePath, fileName = os.path.split(archiveFile)
|
||||||
S3.upload_file(os.path.join(filePath, fileName), bucket_name, full_prefix + '/' + fileName)
|
S3.upload_file(os.path.join(filePath, fileName), bucket_name, full_prefix + '/' + fileName)
|
||||||
print("Uploaded Artifact to S3: https://{}.s3-us-west-2.amazonaws.com/{}/{}".format(bucket_name, full_prefix, fileName))
|
print("Uploaded Artifact to S3: https://{}.s3-eu-west-3.amazonaws.com/{}/{}".format(bucket_name, full_prefix, fileName))
|
||||||
print("Finished")
|
print("Finished")
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Reference in a new issue