Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/autobuild/android.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ pass_artifact_to_job() {
local artifact="jamulus_${JAMULUS_BUILD_VERSION}_android.apk"
echo "Moving ${BUILD_DIR}/build/outputs/apk/debug/build-debug.apk to deploy/${artifact}"
mv "./${BUILD_DIR}/build/outputs/apk/debug/build-debug.apk" "./deploy/${artifact}"
echo "::set-output name=artifact_1::${artifact}"
echo "artifact_1=${artifact}" >> "$GITHUB_OUTPUT"
}

case "${1:-}" in
Expand Down
5 changes: 3 additions & 2 deletions .github/autobuild/get_build_vars.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,9 @@ def get_build_version(jamulus_pro_version):

def set_github_variable(varname, varval):
print("{}='{}'".format(varname, varval)) # console output
print("::set-output name={}::{}".format(varname, varval))

outputfile = os.getenv('GITHUB_OUTPUT')
with open(outputfile, "a") as ghout:
ghout.write(f"{varname}={varval}\n")

jamulus_pro_version = get_version_from_jamulus_pro()
set_github_variable("JAMULUS_PRO_VERSION", jamulus_pro_version)
Expand Down
2 changes: 1 addition & 1 deletion .github/autobuild/ios.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ pass_artifact_to_job() {
local artifact="jamulus_${JAMULUS_BUILD_VERSION}_iOSUnsigned${ARTIFACT_SUFFIX:-}.ipa"
echo "Moving build artifact to deploy/${artifact}"
mv ./deploy/Jamulus.ipa "./deploy/${artifact}"
echo "::set-output name=artifact_1::${artifact}"
echo "artifact_1=${artifact}" >> "$GITHUB_OUTPUT"
}

case "${1:-}" in
Expand Down
4 changes: 2 additions & 2 deletions .github/autobuild/linux_deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,12 @@ pass_artifacts_to_job() {
local artifact_1="jamulus-headless_${JAMULUS_BUILD_VERSION}_ubuntu_${TARGET_ARCH}.deb"
echo "Moving headless build artifact to deploy/${artifact_1}"
mv ../jamulus-headless*"_${TARGET_ARCH}.deb" "./deploy/${artifact_1}"
echo "::set-output name=artifact_1::${artifact_1}"
echo "artifact_1=${artifact_1}" >> "$GITHUB_OUTPUT"

local artifact_2="jamulus_${JAMULUS_BUILD_VERSION}_ubuntu_${TARGET_ARCH}.deb"
echo "Moving regular build artifact to deploy/${artifact_2}"
mv ../jamulus*_"${TARGET_ARCH}.deb" "./deploy/${artifact_2}"
echo "::set-output name=artifact_2::${artifact_2}"
echo "artifact_2=${artifact_2}" >> "$GITHUB_OUTPUT"
}

case "${1:-}" in
Expand Down
4 changes: 2 additions & 2 deletions .github/autobuild/mac.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ prepare_signing() {
security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "${KEYCHAIN_PASSWORD}" build.keychain

# Tell Github Workflow that we need notarization & stapling:
echo "::set-output name=macos_signed::true"
echo "macos_signed=true" >> "$GITHUB_OUTPUT"
return 0
}

Expand All @@ -80,7 +80,7 @@ pass_artifact_to_job() {
artifact="jamulus_${JAMULUS_BUILD_VERSION}_mac${ARTIFACT_SUFFIX:-}.dmg"
echo "Moving build artifact to deploy/${artifact}"
mv ./deploy/Jamulus-*installer-mac.dmg "./deploy/${artifact}"
echo "::set-output name=artifact_1::${artifact}"
echo "artifact_1=${artifact}" >> "$GITHUB_OUTPUT"
}

case "${1:-}" in
Expand Down
4 changes: 2 additions & 2 deletions .github/autobuild/windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -150,8 +150,8 @@ Function Pass-Artifact-to-Job
{
throw "move failed with exit code $LastExitCode"
}
echo "Setting Github step output name=artifact_1::${artifact}"
echo "::set-output name=artifact_1::${artifact}"
echo "Setting Github step output name=artifact_1 to ${artifact}"
echo "artifact_1=${artifact}" >> "$Env:GITHUB_OUTPUT"
}

switch ( $Stage )
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ jobs:
run: |
set -eu
build_all_targets() {
echo "::set-output name=build_all_targets::${1}"
echo "build_all_targets=${1}" >> $GITHUB_OUTPUT
echo "Building for all targets? Result: ${1}"
exit 0
}
Expand Down