Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JustDoom authored Oct 19, 2024
1 parent c866dc8 commit 4add40a
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,11 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Install MinGW-w64
run: |
sudo apt-get update
sudo apt-get install -y mingw-w64
- name: Install dependencies
run: |
sudo apt-get install -y cmake libopenal-dev libvorbis-dev libflac-dev
sudo apt-get update
sudo apt-get install -y cmake mingw-w64 ninja-build
sudo apt-get install -y libopenal-dev libvorbis-dev libflac-dev
- name: Setup SSH key and Install submodules
env:
Expand All @@ -69,8 +66,8 @@ jobs:
- name: Configure and build for Windows
run: |
mkdir build && cd build
# Use the MinGW generator for cross-compiling
cmake -G "MinGW Makefiles" -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw-w64/toolchain-mingw32.cmake ..
# Use the Ninja generator for cross-compiling
cmake -G Ninja -DCMAKE_TOOLCHAIN_FILE=/usr/share/mingw-w64/toolchain-mingw32.cmake ..
cmake --build . --config Release
- name: Upload executable
Expand Down

0 comments on commit 4add40a

Please sign in to comment.