Skip to content

Commit

Permalink
test the pre build sdl2 step.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmoreno committed Nov 20, 2024
1 parent bc7025c commit 3884cc0
Showing 1 changed file with 21 additions and 28 deletions.
49 changes: 21 additions & 28 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,24 +18,20 @@ jobs:
uses: actions/checkout@v4

# Linux Build Steps
- name: Install Dependencies (Linux)
- name: Setup SDL (Linux)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
cmake \
libsdl2-dev \
libsdl2-image-dev \
libsdl2-ttf-dev
- name: Configure CMake (Linux)
if: runner.os == 'Linux'
run: cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
uses: libsdl-org/setup-sdl@main
with:
install-linux-dependencies: true
version: 2-latest
version-sdl-image: 2-latest
version-sdl-ttf: 2-latest

- name: Build (Linux)
- name: Configure and Build (Linux)
if: runner.os == 'Linux'
run: cmake --build build --config Release
run: |
cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
- name: Prepare Release Directory (Linux)
if: runner.os == 'Linux'
Expand All @@ -52,23 +48,20 @@ jobs:
path: release/

# Windows Build Steps (Placeholder)
- name: Install Dependencies (Windows)
- name: Setup SDL (Windows)
if: runner.os == 'Windows'
run: |
echo "Installing dependencies on Windows..."
# TODO: Add Windows dependency installation commands here
- name: Configure CMake (Windows)
if: runner.os == 'Windows'
run: |
echo "Configuring CMake on Windows..."
# TODO: Add CMake configuration commands for Windows
uses: libsdl-org/setup-sdl@main
with:
install-windows-dependencies: true
version: 2-latest
version-sdl-image: 2-latest
version-sdl-ttf: 2-latest

- name: Build (Windows)
- name: Configure and Build (Windows)
if: runner.os == 'Windows'
run: |
echo "Building on Windows..."
# TODO: Add build commands for Windows
echo "Configuring and building on Windows..."
# TODO: Add CMake configuration and build commands for Windows
- name: Prepare Release Directory (Windows)
if: runner.os == 'Windows'
Expand Down

0 comments on commit 3884cc0

Please sign in to comment.