Fix vulkan. Fuzzy frame compare. Refactor CI. #89
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
docker: | |
runs-on: ubuntu-22.04 | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Docker meta | |
id: meta | |
uses: docker/metadata-action@v5 | |
with: | |
images: ghcr.io/${{ github.repository }} | |
- name: Setup buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Log into registry ghcr.io | |
uses: docker/login-action@v2 | |
with: | |
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: ${{ steps.meta.outputs.tags }} | |
labels: ${{ steps.meta.outputs.labels }} | |
push: 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 | |
linux: | |
runs-on: ubuntu-22.04 | |
needs: docker | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Build/test mediaFX | |
run: DOCKER_OPTS="-e MEDIAFX_TEST=" builders/Linux/docker-run.sh /mediafx/builders/Linux/mediafx-build.sh | |
- name: Build/test mediaFX vulkan | |
run: DOCKER_OPTS="-e MEDIAFX_TEST=" TARGET=vulkan builders/Linux/docker-run.sh /mediafx/builders/Linux/mediafx-build.sh | |
- name: Upload Failed Artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: failed-output-linux | |
path: build/Linux/output | |
macos: | |
runs-on: macos-13 | |
env: | |
XCODE_VER: "15.0" | |
steps: | |
- name: Upgrade bash | |
run: brew install bash | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Xcode | |
run: | | |
sudo xcode-select -s "/Applications/Xcode_${XCODE_VER}.app" | |
- name: Restore cached installation | |
uses: actions/cache/restore@v3 | |
id: restore-cache | |
with: | |
path: build/Darwin/installed | |
key: ${{ runner.os }}-${{ hashFiles('builders/versions') }}-${{ env.XCODE_VER }} | |
- name: Build installation | |
if: steps.restore-cache.outputs.cache-hit != 'true' | |
run: | | |
builders/Darwin/install-qt6.sh | |
- name: Save cached installation | |
uses: actions/cache/save@v3 | |
if: steps.restore-cache.outputs.cache-hit != 'true' | |
with: | |
path: build/Darwin/installed | |
key: ${{ steps.restore-cache.outputs.cache-primary-key }} | |
- name: Build/test mediaFX | |
run: | | |
MEDIAFX_TEST="-LE GPU" builders/Darwin/mediafx-build.sh | |
- name: Upload Failed Artifacts | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: failed-output-darwin | |
path: build/Darwin/output | |
lint: | |
runs-on: ubuntu-22.04 | |
needs: docker | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: clang-format | |
uses: jidicula/[email protected] | |
with: | |
clang-format-version: '15' | |
- name: qmlformat | |
if: ${{ false }} | |
run: builders/Linux/docker-run.sh bash -c 'cd /mediafx && qmlformat -i $(git ls-files "**/*.qml") && git diff --exit-code' | |
- name: qmllint | |
if: ${{ false }} | |
run: builders/Linux/docker-run.sh bash -c 'cd /mediafx && qmllint --qmltypes build/Linux/Release/src/mediafx/qmldir $(git ls-files "**/*.qml")' | |
- name: iwyu | |
run: builders/Linux/docker-run.sh /mediafx/builders/Linux/iwyu.sh |