Skip to content

Commit

Permalink
Testing workflows.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chukobyte committed Mar 23, 2024
1 parent 2e20675 commit e4e6ac7
Show file tree
Hide file tree
Showing 4 changed files with 161 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/test-macosx-clang-build.yml
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
43 changes: 43 additions & 0 deletions .github/workflows/test-ubuntu-gcc-build.yml
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
34 changes: 34 additions & 0 deletions .github/workflows/test-windows-mingw-build.yml
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
38 changes: 38 additions & 0 deletions .github/workflows/test-windows-msvc-build.yml
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

0 comments on commit e4e6ac7

Please sign in to comment.