-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
161 additions
and
0 deletions.
There are no files selected for viewing
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,46 @@ | ||
name: test-macosx-clang-build | ||
|
||
on: | ||
push: | ||
branches: [ 2.0 ] | ||
|
||
env: | ||
LC_ALL: en_US.UTF-8 | ||
LANG: en_US.UTF-8 | ||
|
||
jobs: | ||
build: | ||
runs-on: macOS-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: install dependencies | ||
run: | | ||
brew install pkg-config | ||
- name: get cmake | ||
uses: lukka/get-cmake@latest | ||
with: | ||
useLocalCache: true | ||
useCloudCache: false | ||
cmakeVersion: "3.25.0" | ||
|
||
- name: run-vcpkg | ||
uses: lukka/[email protected] | ||
with: | ||
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | ||
vcpkgGitCommitId: 'efca044b75fbf481d6650ce4d3b223d8af94f7a7' | ||
|
||
- name: run build | ||
uses: lukka/[email protected] | ||
with: | ||
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||
configurePreset: 'ninja-multi-vcpkg' | ||
configurePresetAdditionalArgs: "['-DIS_CI_BUILD=true']" | ||
buildPreset: 'ninja-multi-vcpkg' | ||
|
||
- name: run unit tests | ||
run: | | ||
echo "Running seika tests!" | ||
${{ github.workspace }}/builds/Debug/seika_test |
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,43 @@ | ||
name: test-ubuntu-gcc-build | ||
|
||
on: | ||
push: | ||
branches: [ 2.0 ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: install updates | ||
run: | | ||
sudo apt install gcc-11 | ||
sudo apt install g++-11 | ||
- name: get cmake | ||
uses: lukka/get-cmake@latest | ||
with: | ||
useLocalCache: true | ||
useCloudCache: false | ||
cmakeVersion: "3.25.0" | ||
|
||
- name: run-vcpkg | ||
uses: lukka/[email protected] | ||
with: | ||
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | ||
vcpkgGitCommitId: 'efca044b75fbf481d6650ce4d3b223d8af94f7a7' | ||
|
||
- name: run build | ||
uses: lukka/[email protected] | ||
with: | ||
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||
configurePreset: 'ninja-multi-vcpkg' | ||
configurePresetAdditionalArgs: "['-DIS_CI_BUILD=true']" | ||
buildPreset: 'ninja-multi-vcpkg' | ||
|
||
- name: run unit tests | ||
run: | | ||
echo "Running seika tests!" | ||
${{ github.workspace }}/builds/Debug/seika_test |
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,34 @@ | ||
name: test-windows-mingw-build | ||
|
||
on: | ||
push: | ||
branches: [ 2.0 ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: msys2/setup-msys2@v2 | ||
with: | ||
install: gcc make | ||
|
||
- name: install dependencies | ||
shell: msys2 {0} | ||
run: | | ||
(echo ""; echo "y") | pacman -S mingw-w64-x86_64-toolchain | ||
echo "y" | pacman -S mingw-w64-x86_64-cmake | ||
echo "y" | pacman -S mingw-w64-x86_64-SDL2 | ||
echo "y" | pacman -S mingw-w64-x86_64-freetype | ||
- name: run build | ||
shell: msys2 {0} | ||
run: | | ||
cmake -G "MinGW Makefiles" . -DIS_CI_BUILD="true" | ||
cmake --build . | ||
- name: run unit tests | ||
shell: msys2 {0} | ||
run: | | ||
./seika_test.exe |
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,38 @@ | ||
name: test-windows-msvc-build | ||
|
||
on: | ||
push: | ||
branches: [ 2.0 ] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: get cmake | ||
uses: lukka/get-cmake@latest | ||
with: | ||
useLocalCache: true | ||
useCloudCache: false | ||
cmakeVersion: "3.25.0" | ||
|
||
- name: run-vcpkg | ||
uses: lukka/[email protected] | ||
with: | ||
vcpkgDirectory: '${{ github.workspace }}/vcpkg' | ||
vcpkgGitCommitId: 'efca044b75fbf481d6650ce4d3b223d8af94f7a7' | ||
|
||
- name: run build | ||
uses: lukka/[email protected] | ||
with: | ||
cmakeListsTxtPath: '${{ github.workspace }}/CMakeLists.txt' | ||
configurePreset: 'ninja-multi-vcpkg' | ||
configurePresetAdditionalArgs: "['-DIS_CI_BUILD=true']" | ||
buildPreset: 'ninja-multi-vcpkg' | ||
|
||
- name: run unit tests | ||
run: | | ||
echo "Running seika tests!" | ||
${{ github.workspace }}\builds\Debug\seika_test.exe |