remove windows spêcific #1167
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: C++ CI Serial Programs | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [windows-2022, macos-12, ubuntu-22.04] | |
qt_version: ['5.12.12', '6.3.2', '6.6.1'] | |
include: | |
- qt_version: '5.12.12' | |
qt_version_major: '5' | |
qt_modules: '' | |
- qt_version: '6.3.2' | |
qt_version_major: '6' | |
qt_modules: 'qtmultimedia qtserialport' | |
- qt_version: '6.6.1' | |
qt_version_major: '6' | |
qt_modules: 'qtmultimedia qtserialport' | |
- os: windows-2022 | |
cmake_args: '-G "Visual Studio 17 2022"' | |
- os: macos-12 | |
cmake_args: '' | |
- os: ubuntu-22.04 | |
cmake_args: '' | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
path: Arduino-Source | |
- uses: actions/checkout@v3 | |
with: | |
repository: 'PokemonAutomation/Packages' | |
path: Packages | |
- name: Add msbuild to PATH | |
if: startsWith(matrix.os, 'windows') | |
uses: ilammy/msvc-dev-cmd@v1 | |
- name: Install dependencies | |
if: startsWith(matrix.os, 'ubuntu') | |
run: | | |
sudo apt update | |
sudo apt install mesa-common-dev libglu1-mesa-dev libegl1 libpulse-dev libgstreamer-gl1.0-0 libgstreamer-plugins-base1.0-0 libopencv-dev | |
- name: Install dependencies | |
if: startsWith(matrix.os, 'mac') | |
run: | | |
brew install opencv | |
- name: Install Qt | |
uses: jurplel/install-qt-action@v3 | |
with: | |
version: ${{ matrix.qt_version }} | |
modules: ${{ matrix.qt_modules }} | |
- name: Run cmake | |
run: | | |
cd Arduino-Source/SerialPrograms | |
mkdir bin | |
cd bin | |
cmake .. -DQT_MAJOR:STRING=${{ matrix.qt_version_major }} ${{ matrix.cmake_args }} | |
- name: Generate binaries | |
run: | | |
cd Arduino-Source/SerialPrograms/bin | |
cmake --build . | |
- name: Copy resources | |
if: startsWith(matrix.os, 'windows') | |
run: | | |
robocopy Packages/SerialPrograms/Resources Output/Resources /s | |
robocopy Packages/PABotBase/PABotBase-Switch Output/PABotBase /s | |
robocopy Arduino-Source/SerialPrograms/bin Output/Binaries dpp.dll libcrypto-1_1-x64.dll libsodium.dll libssl-1_1-x64.dll opencv_world460.dll opus.dll Sleepy.dll tesseractPA.dll zlib1.dll | |
robocopy Arduino-Source/SerialPrograms/bin/Release Output/Binaries SerialPrograms.exe | |
exit 0 | |
- uses: actions/upload-artifact@v3 | |
if: startsWith(matrix.os, 'windows') | |
with: | |
name: Serial Programs for windows (${{ matrix.qt_version }}) | |
path: Output |