Skip to content

Commit

Permalink
Trying to get the workflow to work
Browse files Browse the repository at this point in the history
  • Loading branch information
jgaa committed Mar 4, 2024
1 parent e567530 commit e914ef3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: [push, pull_request]

env:
TOOLS_ROOT: ${{ env.HOME }}

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -68,6 +71,7 @@ jobs:
if [[ "${{ runner.os }}" == "Windows" ]]; then
echo "$env:USERPROFILE\vcpkg" >> $GITHUB_PATH
echo "$env:USERPROFILE\ninja" >> $GITHUB_PATH
echo "$env:USERPROFILE" > $TOOLS_ROOT
else
echo "$HOME/vcpkg" >> $GITHUB_PATH
echo "$HOME/ninja" >> $GITHUB_PATH
Expand All @@ -79,9 +83,10 @@ jobs:
vcpkg install
- name: Build project
shell: bash
run: |
mkdir build
cd build
cmake .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=$TOOLS_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .

0 comments on commit e914ef3

Please sign in to comment.