Skip to content

Commit

Permalink
Idk, let's see if this dependency installation trick works.
Browse files Browse the repository at this point in the history
  • Loading branch information
mcourteaux committed Oct 26, 2023
1 parent fd28e53 commit 0b4caf4
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, windows-latest, macos-latest]
os: [ubuntu-22.04, ubuntu-20.04, windows-latest, macos-latest]
include:
- os: ubuntu-22.04
outputsuffix: ubuntu-2204
Expand Down Expand Up @@ -48,15 +48,40 @@ jobs:
with:
submodules: recursive

- name: Install vcpkg (Windows)
if: runner.os == 'Windows'
run: |
git clone https://github.com/microsoft/vcpkg.git
cd vcpkg
./bootstrap-vcpkg.bat
./vcpkg integrate install
./vcpkg install libjpeg-turbo
- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
if: runner.os == 'Windows'
# Configure CMake in a 'build' subdirectory.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake .

- name: Configure CMake
if: runner.os != 'Windows'
# Configure CMake in a 'build' subdirectory.
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} .

- name: Build
# Build your program with the given configuration
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}

- name: Cache vcpkg libraries
if: runner.os == 'Windows'
uses: actions/cache@v2
with:
path: |
vcpkg/installed
vcpkg/vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('**/vcpkg.json') }}


- name: Archive Release
uses: thedoctor0/zip-release@0.7.0
with:
Expand Down

0 comments on commit 0b4caf4

Please sign in to comment.