Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom authored Mar 22, 2024
1 parent 6582a66 commit f8dda4f
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y cmake libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxrandr-dev
sudo apt-get update && sudo apt-get install -y cmake libsfml-dev libudev-dev libopenal-dev libvorbis-dev libflac-dev libxrandr-dev libxcursor-dev
- name: Configure and build
run: |
Expand All @@ -36,13 +36,18 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: choco install cmake sfml -y
- name: Install CMake
run: choco install cmake --installargs '"ADD_CMAKE_TO_PATH=System"'

- name: Install SFML
run: |
choco install --pre vcpkg
vcpkg install sfml
- name: Configure and build
run: |
mkdir build && cd build
cmake ..
cmake -DCMAKE_TOOLCHAIN_FILE="C:/tools/vcpkg/scripts/buildsystems/vcpkg.cmake" ..
cmake --build .
- name: Upload executable
Expand Down

0 comments on commit f8dda4f

Please sign in to comment.