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 c098f49 commit d541587
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,20 @@ jobs:
- name: Checkout code
uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update && sudo apt-get install -y wget p7zip-full
- name: Download and Install MinGW toolchain
run: |
sudo apt-get update && sudo apt-get install -y wget
wget -q https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/8.1.0/threads-posix/seh/x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z
sudo apt-get install -y p7zip-full
7z x x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z -o/usr/local/mingw64
export PATH=$PATH:/usr/local/mingw64/bin
mkdir mingw64
7z x x86_64-8.1.0-release-posix-seh-rt_v6-rev0.7z -o./mingw64
- name: Add MinGW bin directory to PATH
run: |
echo "export PATH=\$PATH:/path/to/mingw64/bin" >> $HOME/.bashrc
source $HOME/.bashrc
- name: Download and Install CMake
run: |
Expand All @@ -60,7 +67,7 @@ jobs:
run: |
mkdir build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=/usr/local/mingw64/share/cmake/mingw/toolchain.cmake -DSFML_DIR=/usr/local/SFML-2.6.1/lib/cmake/SFML
cmake .. -DCMAKE_TOOLCHAIN_FILE=/path/to/mingw64/share/cmake/mingw/toolchain.cmake -DSFML_DIR=/usr/local/SFML-2.6.1/lib/cmake/SFML
- name: Build
run: |
Expand Down

0 comments on commit d541587

Please sign in to comment.