-
Notifications
You must be signed in to change notification settings - Fork 15
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 #124 from rbessems/Building
Enable building of the application for each chapter.
- Loading branch information
Showing
4 changed files
with
104 additions
and
6 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,30 @@ | ||
name: 'Android Build Chapters' | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
# tags: | ||
# - "v*.*.*" | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Android Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest] | ||
target: [android] | ||
graphics: [VULKAN, OPENGL_ES] | ||
chapter: [Chapter1, Chapter2, Chapter3, Chapter4, Chapter5] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build ${{ matrix.chapter }} using ${{ matrix.gfx }} on ${{ matrix.os }} | ||
run: | | ||
echo "Building ${{ matrix.chapter }} using ${{ matrix.gfx }} on ${{ matrix.os }} ${{ github.ref_name }}" | ||
export GFX=${{ matrix.graphics }} | ||
cd ${{ matrix.chapter }} | ||
chmod 755 gradlew | ||
./gradlew assembleDebug | ||
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,39 @@ | ||
name: 'Linux Build Chapters' | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
# tags: | ||
# - "v*.*.*" | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
name: Linux Build | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [ubuntu-latest] | ||
target: [linux] | ||
graphics: [VULKAN, OPENGL] | ||
steps: | ||
- name: Setup | ||
run: | | ||
sudo apt-get install libglu1-mesa-dev freeglut3-dev mesa-common-dev libgl1-mesa-dev | ||
sudo apt install vulkan-tools | ||
sudo apt install libvulkan-dev | ||
sudo apt install vulkan-validationlayers-dev spirv-tools glslang-tools | ||
sudo apt install libxrandr-dev libxxf86vm-dev | ||
sudo apt-get install libxcb-randr0-dev libxcb-xtest0-dev libxcb-xinerama0-dev libxcb-shape0-dev libxcb-xkb-dev | ||
sudo apt-get install libgl1-mesa-dev libvulkan-dev libx11-xcb-dev libxcb-dri2-0-dev libxcb-glx0-dev libxcb-icccm4-dev libxcb-keysyms1-dev libxcb-randr0-dev libxrandr-dev libxxf86vm-dev mesa-common-dev | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build ${{ matrix.gfx }} on ${{ matrix.os }} | ||
run: | | ||
echo "Building ${{ matrix.os }} ${{ github.ref_name }}" | ||
export GFX=${{ matrix.graphics }} | ||
mkdir build | ||
cd build | ||
cmake .. | ||
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 Build Chapters' | ||
on: | ||
pull_request: | ||
branches: [ "main" ] | ||
# tags: | ||
# - "v*.*.*" | ||
# workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
if: false | ||
name: Windows Build | ||
runs-on: ${{matrix.os}} | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
os: [windows-latest] | ||
target: [windows] | ||
graphics: [VULKAN, OPENGL, DX11, DX12] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build ${{ matrix.gfx }} on ${{ matrix.os }} | ||
run: | | ||
echo "Building ${{ matrix.os }} ${{ github.ref_name }}" | ||
set GFX=${{ matrix.graphics }} | ||
mkdir build | ||
cd build | ||
cmake .. | ||
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