Skip to content

Commit

Permalink
fix builders
Browse files Browse the repository at this point in the history
  • Loading branch information
rectalogic committed Dec 12, 2023
1 parent a57ff5c commit 3cac6d8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,18 @@ jobs:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Source versions
run: |
source builders/versions
echo "QT_VER=${QT_VER}" >> $GITHUB_ENV
- name: Build mediafx image
uses: docker/build-push-action@v5
with:
context: builders/Linux
tags: mediafx
load: true
target: mediafx
build-args: QT_VER=${{ env.QT_VER }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
- name: Build mediafx-vulkan image
Expand All @@ -39,7 +44,8 @@ jobs:
context: builders/Linux
tags: mediafx-vulkan
load: true
target: mediafx-vulkan
target: mediafx-vulkan
build-args: QT_VER=${{ env.QT_VER }}
cache-from: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache
cache-to: type=registry,ref=ghcr.io/${{ github.repository }}:buildcache,mode=max
- name: Install mediaFX
Expand Down
2 changes: 1 addition & 1 deletion builders/Darwin/install-qt6.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ set -u
CURRENT=$(dirname "${BASH_SOURCE[0]}")
source "$CURRENT/../versions"
(
mkdir -p "$BUILD_ROOT"/Darwin && cd "$BUILD_ROOT"/Darwin
mkdir -p "${BUILD_ROOT:?}" && cd "$BUILD_ROOT"
python3 -m venv --clear "build/qtvenv" || exit 1
"build/qtvenv/bin/pip" install --upgrade --upgrade-strategy eager aqtinstall || exit 1
"build/qtvenv/bin/python" -m aqt install-qt mac desktop ${QT_VER} --modules qtmultimedia qtquick3d qtshadertools qtquicktimeline qtquickeffectmaker -O "$BUILD_ROOT/installed" || exit 1
Expand Down
4 changes: 2 additions & 2 deletions builders/Darwin/mediafx-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

CURRENT=$(dirname "${BASH_SOURCE[0]}")
source "$CURRENT/../versions"
INSTALL_ROOT="${BUILD_ROOT:?}/Darwin/installed/${QT_VER:?}/macos"
INSTALL_ROOT="${BUILD_ROOT:?}/installed/${QT_VER:?}/macos"
BUILD_TYPE=${BUILD_TYPE:-Release}

MEDIAFX_ROOT="$(cd "$(dirname "${CURRENT}")/../"; pwd)"

MEDIAFX_BUILD="${BUILD_ROOT}/Darwin/build/mediafx/${BUILD_TYPE}"
MEDIAFX_BUILD="${BUILD_ROOT}/build/mediafx/${BUILD_TYPE}"
mkdir -p "$MEDIAFX_BUILD"

PATH=${INSTALL_ROOT:?}/bin:$PATH
Expand Down
2 changes: 1 addition & 1 deletion builders/Linux/mediafx-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

CURRENT=$(dirname "${BASH_SOURCE[0]}")
source "$CURRENT/../versions"
cd "${BUILD_ROOT:?}/Linux" || exit 1
cd "${BUILD_ROOT:?}" || exit 1
(cmake --install-prefix /usr/local/Qt/${QT_VER:?}/gcc_64 ../.. && cmake --build . && sudo cmake --install .) || exit 1
if [[ -v MEDIAFX_TEST ]]; then
export GALLIUM_DRIVER=softpipe
Expand Down
2 changes: 1 addition & 1 deletion builders/versions
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export QT_VER=6.6.0
BUILD_ROOT="$(dirname "${BASH_SOURCE[0]}")/../build"
BUILD_ROOT="$(dirname "${BASH_SOURCE[0]}")/../build/$(uname)"
mkdir -p "${BUILD_ROOT}"
export BUILD_ROOT=$(cd "${BUILD_ROOT}"; pwd)

0 comments on commit 3cac6d8

Please sign in to comment.