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 23a866b commit 2e96223
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: CI

on: [push, pull_request]

env:
TOOLS_ROOT: ""

jobs:
build:
runs-on: ${{ matrix.os }}
Expand Down Expand Up @@ -71,11 +68,9 @@ 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
echo "$HOME" >> $TOOLS_ROOT
fi
shell: bash

Expand All @@ -86,8 +81,12 @@ jobs:
- name: Build project
shell: bash
run: |
set
if [[ "${{ runner.os }}" == "Windows" ]]; then
HOME=$env:USERPROFILE
fi
mkdir build
cd build
cmake .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=$TOOLS_ROOT/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=$HOME/vcpkg/scripts/buildsystems/vcpkg.cmake
cmake --build .

0 comments on commit 2e96223

Please sign in to comment.