-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: swurl <[email protected]>
- Loading branch information
Showing
9 changed files
with
67 additions
and
74 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,14 +56,13 @@ jobs: | |
uses: actions/checkout@v4 | ||
with: | ||
repository: 'wpilibsuite/allwpilib' | ||
# ref: 'v2024.1.1-beta-3' # MAY want 2023 | ||
ref: '9b8011aa67e30f150862545758056ff4d0cc0eac' # MAY want 2023 | ||
path: 'allwpilib' | ||
|
||
- name: 'Prepare ntcore' | ||
run: | | ||
cd allwpilib | ||
git apply ../.github/patches/No-Werror.patch | ||
git apply ../.github/patches/Protobuf-Fix.patch | ||
cd .. | ||
- name: 'Install Python Dependencies (Linux)' | ||
|
@@ -143,13 +142,20 @@ jobs: | |
./linuxdeploy-x86_64.AppImage --appdir ${{ env.INSTALL_APPIMAGE_DIR }} --output appimage --plugin qt | ||
- name: Upload binary tarball (Linux) | ||
- name: Upload portable tarball (Linux) | ||
if: runner.os == 'Linux' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: QFRCDashboard-${{ runner.os }}-Qt6-${{ env.VERSION }}-${{ inputs.build_type }} | ||
name: QFRCDashboard-${{ runner.os }}-Binary-${{ env.VERSION }}-${{ inputs.build_type }} | ||
path: QFRCDashboard.tar.gz | ||
|
||
- name: Upload system dir (Linux) | ||
if: runner.os == 'Linux' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: QFRCDashboard-${{ runner.os }}-System-${{ env.VERSION }}-${{ inputs.build_type }} | ||
path: ${{ env.INSTALL_APPIMAGE_DIR }}/** | ||
|
||
- name: Upload AppImage (Linux) | ||
if: runner.os == 'Linux' | ||
uses: actions/upload-artifact@v3 | ||
|
@@ -167,6 +173,7 @@ jobs: | |
BUILD_WIN_DIR: "winbuild" | ||
INSTALL_WIN_DIR: "install-win" | ||
NTCORE_INSTALL_DIR: "install-ntcore" | ||
PROTOBUF_INSTALL_DIR: "install-protobuf" | ||
|
||
steps: | ||
- uses: ilammy/msvc-dev-cmd@v1 | ||
|
@@ -182,18 +189,25 @@ jobs: | |
- name: Run sccache-cache | ||
uses: mozilla-actions/[email protected] | ||
|
||
- name: 'Install Qt (Windows)' | ||
uses: jurplel/[email protected] | ||
with: | ||
version: 6.6.0 | ||
modules: qtmultimedia | ||
|
||
- name: Install jinja | ||
run: | | ||
python -m ensurepip | ||
python -m pip install jinja2 | ||
dir ..\Qt\6.6.0\msvc2019_64\bin | ||
- uses: actions/checkout@v3 | ||
|
||
- name: 'Checkout wpilib' | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: 'wpilibsuite/allwpilib' | ||
# ref: 'v2024.1.1-beta-3' # MAY want 2023 | ||
ref: '9b8011aa67e30f150862545758056ff4d0cc0eac' # MAY want 2023 | ||
path: 'allwpilib' | ||
|
||
- name: Run vcpkg | ||
|
@@ -207,12 +221,11 @@ jobs: | |
run: | | ||
cd allwpilib | ||
git apply ../.github/patches/No-Werror.patch | ||
git apply ../.github/patches/Protobuf-Fix.patch | ||
cd .. | ||
- name: 'Configure ntcore CMake (Windows)' | ||
run: | | ||
cmake -S allwpilib -B win-nt-build -G "Ninja" -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE=Release -DWITH_JAVA=OFF -DWITH_EXAMPLES=OFF -DUSE_SYSTEM_FMTLIB=ON -DUSE_SYSTEM_LIBUV=ON -DUSE_SYSTEM_EIGEN=ON -DWITH_CSCORE=OFF -DWITH_NTCORE=ON -DWITH_WPIMATH=OFF -DWITH_WPILIB=OFF -DWITH_TESTS=OFF -DWITH_GUI=OFF -DWITH_SIMULATION_MODULES=OFF -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/allwpilib/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR }} | ||
cmake -S allwpilib -B win-nt-build -G "Ninja" -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE=Release -DWITH_JAVA=OFF -DWITH_EXAMPLES=OFF -DUSE_SYSTEM_FMTLIB=OFF -DUSE_SYSTEM_LIBUV=OFF -DUSE_SYSTEM_EIGEN=OFF -DWITH_CSCORE=OFF -DWITH_NTCORE=ON -DWITH_WPIMATH=OFF -DWITH_WPILIB=OFF -DWITH_TESTS=OFF -DWITH_GUI=OFF -DWITH_SIMULATION_MODULES=OFF -DCMAKE_TOOLCHAIN_FILE=${{ runner.workspace }}/allwpilib/vcpkg/scripts/buildsystems/vcpkg.cmake -DVCPKG_INSTALL_OPTIONS=--clean-after-build -DVCPKG_TARGET_TRIPLET=x64-windows-release -DVCPKG_HOST_TRIPLET=x64-windows-release -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_DIR }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
|
@@ -229,30 +242,59 @@ jobs: | |
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
- name: 'Install Qt (Windows)' | ||
uses: jurplel/[email protected] | ||
- name: 'Checkout protobuf' | ||
uses: actions/checkout@v4 | ||
with: | ||
version: 6.6.0 | ||
modules: qtmultimedia | ||
repository: 'protocolbuffers/protobuf' | ||
# ref: 'v2024.1.1-beta-3' # MAY want 2023 | ||
path: 'protobuf' | ||
|
||
- name: 'Prepare protobuf (Windows)' | ||
working-directory: protobuf | ||
run: | | ||
git submodule update --init --recursive | ||
- name: 'Configure protobuf CMake (Windows)' | ||
run: | | ||
cmake -S protobuf -B win-pb-build -G "Ninja" -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=${{ env.INSTALL_PROTOBUF_DIR }} -Dprotobuf_ALLOW_CCACHE=ON -Dprotobuf_BUILD_TESTS=OFF | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
- name: 'Build protobuf (Windows)' | ||
working-directory: win-pb-build | ||
run: | | ||
cmake --build . --parallel $(nproc) | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
- name: 'Install protobuf (Windows)' | ||
run: | | ||
cmake --install win-pb-build --prefix ${{ env.PROTOBUF_INSTALL_DIR }} | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
- name: 'Build (Windows)' | ||
run: | | ||
cmake -S . -B ${{ env.BUILD_WIN_DIR }} -Dntcore_ROOT=${{ env.NTCORE_INSTALL_DIR }} | ||
cmake -S . -B ${{ env.BUILD_WIN_DIR }} -Dntcore_ROOT=${{ env.NTCORE_INSTALL_DIR }} -DProtobuf_ROOT=${{ env.PROTOBUF_INSTALL_DIR }} -DCMAKE_CXX_FLAGS="/I${{ runner.workspace }}\QFRCDashboard\${{ env.NTCORE_INSTALL_DIR }}\include /MT" -G "Ninja" -DBUILD_SHARED_LIBS=OFF | ||
cmake --build ${{ env.BUILD_WIN_DIR }} --parallel $(nproc) | ||
env: | ||
SCCACHE_GHA_ENABLED: "true" | ||
|
||
- name: Package (Windows) | ||
shell: cmd | ||
run: | | ||
cmake --install ${{ env.BUILD_WIN_DIR }} --prefix ${{ env.INSTALL_WIN_DIR }} --component portable | ||
mkdir ${{ env.INSTALL_WIN_DIR }} | ||
set PATH=%PATH%;"${{ runner.workspace }}\Qt\6.6.0\msvc2019_64\bin" | ||
windeployqt ${{ env.BUILD_WIN_DIR }}\QFRCDashboard.exe --dir ${{ env.INSTALL_WIN_DIR }} | ||
cp ${{ env.BUILD_WIN_DIR }}\QFRCDashboard.exe ${{ env.INSTALL_WIN_DIR }} | ||
## | ||
# UPLOAD BUILDS | ||
## | ||
|
||
- name: Upload binary zip (Windows, portable) | ||
if: runner.os == 'Windows' | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: QFRCDashboard-${{ matrix.name }}-Portable-${{ env.VERSION }}-${{ inputs.build_type }} | ||
name: QFRCDashboard-Windows-Portable-${{ env.VERSION }}-${{ inputs.build_type }} | ||
path: ${{ env.INSTALL_WIN_DIR }}/** |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
#include "ntcore_cpp.h" | ||
|
||
#include <QApplication> | ||
#include <QTimer> | ||
#include <QRadioButton> | ||
|