Try putting msys64 on PATH #7
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: Compile fxload | |
on: push | |
jobs: | |
build-windows-msvc: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install libusb | |
run: | | |
C:\vcpkg\vcpkg.exe install libusb:x64-windows | |
- name: Compile project | |
run: | | |
mkdir build | |
cd build | |
cmake .. -DUSE_WERROR=TRUE -DCMAKE_PREFIX_PATH=C:\vcpkg\installed\x64-windows | |
cmake --build . | |
build-windows-mingw: | |
runs-on: windows-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install libusb and ucrt64 GCC compiler | |
run: | | |
$env:PATH = "C:\msys64\usr\bin;$env:PATH" | |
pacman -S mingw-w64-ucrt-x86_64-libusb mingw-w64-ucrt-x86_64-gcc ninja | |
- name: Compile project | |
run: | | |
$env:PATH = "C:\msys64\usr\bin;C:\msys64\ucrt64\usr\bin;$env:PATH" | |
mkdir build | |
cd build | |
cmake .. -GNinja -DUSE_WERROR=TRUE -DCMAKE_C_COMPILER=mingw-w64-ucrt-x86_64-gcc -DCMAKE_CXX_COMPILER=mingw-w64-ucrt-x86_64-g++ | |
ninja | |
build-mac: | |
runs-on: macos-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install libusb | |
run: | | |
brew install libusb ninja | |
- name: Compile project | |
run: | | |
mkdir build | |
cd build | |
cmake .. -GNinja -DUSE_WERROR=TRUE | |
ninja | |
build-ubuntu: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Install libusb | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y libusb-1.0-0-dev ninja-build | |
- name: Compile project | |
run: | | |
mkdir build | |
cd build | |
cmake .. -GNinja -DUSE_WERROR=TRUE | |
ninja |