Rename last 2 camlib mentions #261
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: Build | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
jobs: | |
linux-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup git | |
run: | | |
git config --global url."https://github.com/".insteadOf "git@github.com:" | |
git submodule update --init --recursive | |
- name: Install dependencies | |
run: sudo apt install libusb-1.0-0-dev libexif-dev cmake | |
- name: Build | |
run: cmake -B build -G Ninja && cmake --build build | |
- name: Compile and run regression test | |
run: | | |
cmake -G Ninja -B build_test -DPTP_INCLUDE_VCAM_TEST=ON -DPTP_INCLUDE_LIBUSB_LIBS=OFF | |
cmake --build build_test | |
build_test/test | |
- name: Install Windows dependencies | |
run: sudo apt install gcc-mingw-w64-base g++-mingw-w64-x86-64-win32 | |
- name: Compile Windows | |
run: | | |
cmake -DCMAKE_TOOLCHAIN_FILE=.github/workflows/mingw.cmake -DPTP_INCLUDE_WINDOWS_TEST=ON -G Ninja -B build_win | |
cmake --build build_win | |
macOS-build: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: brew install libusb --force | |
- name: Build | |
run: cmake -B build -G Ninja && cmake --build build |