Linux: Improve theme detection for Gnome, KDE #2818
This file contains hidden or 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: build | |
| on: [push, pull_request] | |
| jobs: | |
| ubuntu: | |
| runs-on: [ubuntu-latest] | |
| strategy: | |
| matrix: | |
| java: [25] | |
| arch: [x86_64, aarch64, riscv64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'liberica' | |
| - run: sudo apt-get install makeself | |
| - run: ant -Dtarget.arch=${{ matrix.arch }} makeself | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: qz-tray-linux-${{ matrix.arch }} | |
| path: out/qz-tray-*.run | |
| - if: ${{ matrix.arch == 'x86_64' }} | |
| run: | | |
| # Only run tests on same arch | |
| sudo apt-get install firefox chromium | |
| ant testng | |
| # Run policy tests again, but as root | |
| sudo JAVA_HOME="$JAVA_HOME" JAVACMD="$JAVA_HOME/bin/java" ant -Dtestng.pattern="**/policy/**" testng | |
| sudo DEBUG=true out/qz-tray-*.run | |
| /opt/qz-tray/qz-tray --version | |
| sudo apt-get install nsis | |
| ant nsis | |
| macos: | |
| runs-on: [macos-latest] | |
| strategy: | |
| matrix: | |
| java: [25] | |
| arch: [x86_64, aarch64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'liberica' | |
| - run: ant -Dtarget.arch=${{ matrix.arch }} pkgbuild | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: qz-tray-macos-${{ matrix.arch }} | |
| path: out/qz-tray-*.pkg | |
| - if: ${{ matrix.arch == 'aarch64' }} | |
| run: | | |
| # Only run tests on same arch | |
| brew install --cask google-chrome firefox | |
| ant testng | |
| # Run policy tests again, but as root | |
| sudo ant -Dtestng.pattern="**/policy/**" testng | |
| sudo installer -pkg out/qz-tray-*.pkg -target / || (cat /tmp/qz-install.log && false) | |
| "/Applications/QZ Tray.app/Contents/MacOS/QZ Tray" --version | |
| brew install nsis makeself | |
| ant makeself | |
| ant nsis | |
| windows: | |
| runs-on: [windows-latest] | |
| strategy: | |
| matrix: | |
| java: [25] | |
| arch: [x86_64, aarch64] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-java@v5 | |
| with: | |
| java-version: ${{ matrix.java }} | |
| distribution: 'liberica' | |
| - run: choco install nsis | |
| - run: ant "-Dtarget.arch=${{ matrix.arch }}" nsis | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: qz-tray-windows-${{ matrix.arch }} | |
| path: out/qz-tray-*.exe | |
| - if: ${{ matrix.arch == 'x86_64' }} | |
| run: | | |
| # Only run tests on same arch | |
| choco install firefox googlechrome | |
| ant testng | |
| Start-Process -Wait ./out/qz-tray-*.exe -ArgumentList "/S" | |
| "&'C:/Program Files/QZ Tray/qz-tray.exe' --wait --version|Out-Null" | |