tests: fix oscquery dense test getting stuck due to asio timer blocking #754
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: ossia-qml | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
qml-linux: | |
runs-on: ubuntu-latest | |
name: QML (Linux) | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-ubuntu-toolchain | |
- name: Build | |
run: | | |
cmake -B build -S ${GITHUB_WORKSPACE} -GNinja \ | |
-DOSSIA_CI=1 \ | |
-DOSSIA_QML_ONLY=1 \ | |
-DCMAKE_INSTALL_PREFIX=install \ | |
-DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
cmake --build build --target install | |
- name: Archive Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ossia-qml-linux | |
path: install | |
qml-mac: | |
name: QML (macOS) | |
runs-on: macos-14 | |
environment: 'Apple Certificate' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-mac-toolchain | |
- name: Install Dependencies | |
run: | | |
brew install qt | |
- name: Build | |
run: | | |
cmake -B build -S ${GITHUB_WORKSPACE} -GNinja \ | |
-DOSSIA_CI=1 \ | |
-DOSSIA_QML_ONLY=1 \ | |
-DCMAKE_INSTALL_PREFIX=install \ | |
-DCMAKE_BUILD_TYPE=Release \ | |
-DCMAKE_OSX_ARCHITECTURES="x86_64" | |
cmake --build build | |
cmake --build build --target install | |
# - name: Code Signing | |
# shell: bash | |
# env: | |
# MAC_CERT_B64: ${{ secrets.MAC_CERT_B64 }} | |
# MAC_CERT_PASSWORD: ${{ secrets.MAC_CERT_PASSWORD }} | |
# MAC_ALTOOL_PASSWORD: ${{ secrets.MAC_ALTOOL_PASSWORD }} | |
# run: | | |
# source ${GITHUB_WORKSPACE}/ci/codesign_functions.sh | |
# release_macos_folder "${GITHUB_WORKSPACE}/install/Ossia" "$PWD/ossia-qml-osx.zip" "io.ossia.ossia-qml" | |
- name: Archive Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ossia-qml-mac | |
path: install | |
qml-windows: | |
name: QML (Windows) | |
runs-on: 'windows-latest' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/latest-msvc-toolchain | |
- name: Build | |
shell: cmd | |
run: | | |
cmake -B build -S %GITHUB_WORKSPACE% -GNinja -DOSSIA_PCH=0 -DOSSIA_CI=1 -DOSSIA_QML_ONLY=1 -DCMAKE_SYSTEM_VERSION=7 -DCMAKE_INSTALL_PREFIX=install -DCMAKE_BUILD_TYPE=Release | |
cmake --build build | |
cmake --install build | |
- name: Archive Package | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ossia-qml-windows | |
path: install | |
upload_release: | |
runs-on: ubuntu-latest | |
needs: [ qml-linux, qml-mac, qml-windows ] | |
steps: | |
- uses: actions/[email protected] | |
with: | |
pattern: ossia-qml-* | |
path: ossia | |
- name: Rezip | |
shell: bash | |
run: | | |
ls | |
SHORT=${GITHUB_REF:11} # remove the 'refs/tags/' prefix | |
SLUG=${SHORT//\//_} # replace '/' with '_' | |
zip -r ossia-qml-${SLUG}.zip ossia | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
if: startsWith(github.ref, 'refs/tags/') | |
with: | |
files: ossia-qml*.zip |