Skip to content

Commit

Permalink
Lol
Browse files Browse the repository at this point in the history
  • Loading branch information
syyyr committed Oct 21, 2024
1 parent 62ca524 commit 1eb0f94
Show file tree
Hide file tree
Showing 4 changed files with 165 additions and 248 deletions.
46 changes: 0 additions & 46 deletions .github/workflows/lint.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/lupdate.yml

This file was deleted.

260 changes: 130 additions & 130 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,93 +12,93 @@ on:
branches: [ "master" ]

jobs:
ubuntu-qt5:
name: Qt 5.15.2 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 5.15.2
use_qt6: OFF
modules: ""

- name: Build and test
uses: ./.github/actions/build-and-test

ubuntu-qt6-5:
name: Qt 6.5.3 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.5.3
use_qt6: ON
modules: qtserialport qtwebsockets

- name: Build and test
uses: ./.github/actions/build-and-test

ubuntu-qt6-7:
name: Qt 6.7.3 / Ubuntu 22.04
runs-on: ubuntu-22.04
env:
CFLAGS: -fsanitize=address,undefined
CXXFLAGS: -fsanitize=address,undefined
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.7.3
qt_arch: linux_gcc_64
use_qt6: ON
modules: qtserialport qtwebsockets

- name: Build and test
uses: ./.github/actions/build-and-test

windows-mingw:
name: Qt 6.5.3 / Windows MinGW
runs-on: windows-2022
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.5.3
qt_arch: win64_mingw
use_qt6: ON
modules: qtserialport qtwebsockets
# Need to get all binaries in the same directory, otherwise the tests can't find the dlls.
additional_cmake_args: |
-DLIBSHV_WITH_LDAP=OFF \
-DCMAKE_RUNTIME_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin' \
-DCMAKE_LIBRARY_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin'
- name: Build and test
uses: ./.github/actions/build-and-test
# ubuntu-qt5:
# name: Qt 5.15.2 / Ubuntu 22.04
# runs-on: ubuntu-22.04
# env:
# CFLAGS: -fsanitize=address,undefined
# CXXFLAGS: -fsanitize=address,undefined
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: Setup CMake
# uses: ./.github/actions/cmake
# with:
# qt_version: 5.15.2
# use_qt6: OFF
# modules: ""
#
# - name: Build and test
# uses: ./.github/actions/build-and-test
#
# ubuntu-qt6-5:
# name: Qt 6.5.3 / Ubuntu 22.04
# runs-on: ubuntu-22.04
# env:
# CFLAGS: -fsanitize=address,undefined
# CXXFLAGS: -fsanitize=address,undefined
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: Setup CMake
# uses: ./.github/actions/cmake
# with:
# qt_version: 6.5.3
# use_qt6: ON
# modules: qtserialport qtwebsockets
#
# - name: Build and test
# uses: ./.github/actions/build-and-test
#
# ubuntu-qt6-7:
# name: Qt 6.7.3 / Ubuntu 22.04
# runs-on: ubuntu-22.04
# env:
# CFLAGS: -fsanitize=address,undefined
# CXXFLAGS: -fsanitize=address,undefined
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: Setup CMake
# uses: ./.github/actions/cmake
# with:
# qt_version: 6.7.3
# qt_arch: linux_gcc_64
# use_qt6: ON
# modules: qtserialport qtwebsockets
#
# - name: Build and test
# uses: ./.github/actions/build-and-test
#
# windows-mingw:
# name: Qt 6.5.3 / Windows MinGW
# runs-on: windows-2022
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: Setup CMake
# uses: ./.github/actions/cmake
# with:
# qt_version: 6.5.3
# qt_arch: win64_mingw
# use_qt6: ON
# modules: qtserialport qtwebsockets
# # Need to get all binaries in the same directory, otherwise the tests can't find the dlls.
# additional_cmake_args: |
# -DLIBSHV_WITH_LDAP=OFF \
# -DCMAKE_RUNTIME_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin' \
# -DCMAKE_LIBRARY_OUTPUT_DIRECTORY='${{github.workspace}}/build/bin'
#
# - name: Build and test
# uses: ./.github/actions/build-and-test

windows-msvc:
name: Qt 6.5.3 / Windows MSVC
Expand All @@ -124,46 +124,46 @@ jobs:
- name: Build and test
uses: ./.github/actions/build-and-test

android:
name: Qt 6.7.3 / Android
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true

- name: Setup CMake
uses: ./.github/actions/cmake
with:
qt_version: 6.7.3
qt_arch: android_arm64_v8a
use_qt6: ON
modules: qtserialport qtwebsockets
additional_cmake_args: -DLIBSHV_WITH_LDAP=OFF

- name: Build and test
uses: ./.github/actions/build-and-test

nix:
name: Qt 6.6.2 / NixOS
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install Nix
uses: cachix/install-nix-action@v20
with:
nix_path: nixpkgs=channel:nixos-unstable
- name: Build
run: nix --experimental-features 'nix-command flakes' build -L .
- name: Build Full
run: nix --experimental-features 'nix-command flakes' build -L .#full
- name: Build CLI
run: nix --experimental-features 'nix-command flakes' build -L .#cli
- name: Build for clients
run: nix --experimental-features 'nix-command flakes' build -L .#forClients
- name: Flake check
run: nix --experimental-features 'nix-command flakes' flake check .
- name: Format
run: nix --experimental-features 'nix-command flakes' fmt && git diff --exit-code
# android:
# name: Qt 6.7.3 / Android
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
#
# - name: Setup CMake
# uses: ./.github/actions/cmake
# with:
# qt_version: 6.7.3
# qt_arch: android_arm64_v8a
# use_qt6: ON
# modules: qtserialport qtwebsockets
# additional_cmake_args: -DLIBSHV_WITH_LDAP=OFF
#
# - name: Build and test
# uses: ./.github/actions/build-and-test
#
# nix:
# name: Qt 6.6.2 / NixOS
# runs-on: ubuntu-22.04
# steps:
# - uses: actions/checkout@v4
# with:
# submodules: true
# - name: Install Nix
# uses: cachix/install-nix-action@v20
# with:
# nix_path: nixpkgs=channel:nixos-unstable
# - name: Build
# run: nix --experimental-features 'nix-command flakes' build -L .
# - name: Build Full
# run: nix --experimental-features 'nix-command flakes' build -L .#full
# - name: Build CLI
# run: nix --experimental-features 'nix-command flakes' build -L .#cli
# - name: Build for clients
# run: nix --experimental-features 'nix-command flakes' build -L .#forClients
# - name: Flake check
# run: nix --experimental-features 'nix-command flakes' flake check .
# - name: Format
# run: nix --experimental-features 'nix-command flakes' fmt && git diff --exit-code
Loading

0 comments on commit 1eb0f94

Please sign in to comment.