Skip to content

Commit

Permalink
Merge pull request #4 from diamant3/breakdown-ci
Browse files Browse the repository at this point in the history
breakdown ci per platform
  • Loading branch information
HendrixString committed Sep 4, 2023
2 parents 1965338 + bf2c4ff commit 88291d7
Show file tree
Hide file tree
Showing 4 changed files with 89 additions and 78 deletions.
78 changes: 0 additions & 78 deletions .github/workflows/compile.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/compile_macos.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: mac-os
on:
pull_request:
push:
branches:
- main

jobs:

macos_build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
brew install sdl2
- name: Build & Install
run: |
sudo mkdir cmake-build-release
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --install .
- name: Build all examples
run: |
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --build .
30 changes: 30 additions & 0 deletions .github/workflows/compile_ubuntu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: ubuntu
on:
pull_request:
push:
branches:
- main

jobs:
ubuntu_build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu `lsb_release -sc` main universe restricted multiverse" -y
sudo apt-get install libsdl2-dev -y
- name: Build & Install
run: |
sudo mkdir cmake-build-release
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --install .
- name: Build all examples
run: |
cd cmake-build-release
sudo cmake -DCMAKE_BUILD_TYPE=Release ..
sudo cmake --build .
30 changes: 30 additions & 0 deletions .github/workflows/compile_windows.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: windows
on:
pull_request:
push:
branches:
- main

jobs:
windows_build:
runs-on: windows-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Install dependencies
run: |
vcpkg install sdl2:x64-windows
vcpkg integrate install
- name: Build & Install
run: |
mkdir cmake-build-release
cd cmake-build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake --install .
- name: Build all examples
run: |
cd cmake-build-release
cmake -DCMAKE_BUILD_TYPE=Release .. -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake
cmake --build .

0 comments on commit 88291d7

Please sign in to comment.