diff --git a/.github/workflows/ubuntu-gcc.yml b/.github/workflows/build-ci.yml similarity index 73% rename from .github/workflows/ubuntu-gcc.yml rename to .github/workflows/build-ci.yml index ae2d9d730..adf27a7d2 100644 --- a/.github/workflows/ubuntu-gcc.yml +++ b/.github/workflows/build-ci.yml @@ -21,17 +21,23 @@ jobs: runner: - ubuntu-latest - ubuntu-24.04-arm - # - windows-latest - # - macos-latest + - windows-latest + - macos-latest steps: - uses: actions/checkout@v4 - - name: Install Dependencies + - name: Dependencies (Linux) + if: runner.os == 'linux' shell: bash run: sudo apt-get update -qq && sudo apt-get install -y libsdl2-dev libsdl2-image-dev - - name: Configure cmake + - name: Dependencies (vcpkg) + if: runner.os != 'linux' + shell: bash + run: vcpkg install + + - name: cmake Configure shell: bash run: | cmake -B ./build \ @@ -39,6 +45,6 @@ jobs: -DENABLE_FORCE_SCRIPT=ON \ -DENABLE_EDITOR=ON - - name: Build + - name: cmake Build shell: bash run: cmake --build ./build --config ${{env.BUILD_TYPE}} diff --git a/vcpkg.json b/vcpkg.json new file mode 100644 index 000000000..3b0a16274 --- /dev/null +++ b/vcpkg.json @@ -0,0 +1,7 @@ +{ + "$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json", + "dependencies": [ + "sdl2", + "sdl2-image" + ] +}