-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from diamant3/breakdown-ci
breakdown ci per platform
- Loading branch information
Showing
4 changed files
with
89 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |