Replies: 4 comments 2 replies
-
What's your github action? There is likely a problem. You can probably take some inspiration from: FTXUI/.github/workflows/build.yaml Lines 35 to 37 in 764c24e FTXUI/.github/workflows/build.yaml Lines 39 to 73 in 764c24e |
Beta Was this translation helpful? Give feedback.
-
My action is as follows (
I'll give your suggestion a try and report back. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, your suggestion doesn't seem to have worked for me so far. name: CMake
on:
push:
branches: [ '*' ]
env:
BUILD_TYPE: Release
jobs:
compiling:
name: "Compiling"
strategy:
matrix:
include:
- name: Windows
os: windows-latest
compiler: cl
- name: Linux GCC
os: ubuntu-latest
compiler: gcc
- name: MacOS Clang
os: macos-latest
compiler: llvm
runs-on: ${{ matrix.os }}
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Setup C++
uses: aminya/setup-cpp@v1
with:
# Let's add `clangtidy: true` and maybe other possible checks here in the future.
compiler: ${{ matrix.compiler }}
#vcvarsall: ${{ contains(matrix.os, 'windows' )}} # I'm not 100% sure what this is tbh.
cmake: true
ninja: true
- name: Download Packages
if: ${{ contains(matrix.os, 'ubuntu' )}}
run: sudo apt update && sudo apt install libx11-dev libsfml-dev xorg-dev libopengl-dev mesa-common-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libncurses-dev
shell: bash
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
|
Beta Was this translation helpful? Give feedback.
-
What happens if you replace: target_link_libraries(${PROJECT_NAME} PRIVATE ... ftxui::screen ftxui::dom ftxui::component) by: target_link_libraries(${PROJECT_NAME} PRIVATE ftxui::screen ftxui::dom ftxui::component) I don't understand what are the "..." This might be the issue. |
Beta Was this translation helpful? Give feedback.
-
I'm able to compile locally, but my project fails to compile when running with GitHub Actions on
windows-latest
in either debug or release modes.I am using CPM, but the same has happened when using
FetchContent
manually.Error
Setup
ftxui-screen.dll
seems to be generated correctly:Let me know if this is an issue on my end 💯
Beta Was this translation helpful? Give feedback.
All reactions