Skip to content

Update Kinc

Update Kinc #33

name: Linux on ARM (OpenGL)
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
name: Build on ${{ matrix.distro }} ${{ matrix.arch }}
# Run steps for both armv6 and aarch64
strategy:
matrix:
include:
- arch: aarch64
distro: ubuntu20.04
- arch: armv7
distro: ubuntu20.04
steps:
- uses: actions/checkout@v3
- uses: uraimo/[email protected]
name: Run Tests in ${{ matrix.distro }} ${{ matrix.arch }}
id: build
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
# Not required, but speeds up builds
githubToken: ${{ github.token }}
# The shell to run commands with in the container
shell: /bin/bash
# Install some dependencies in the container. This speeds up builds if
# you are also using githubToken. Any dependencies installed here will
# be part of the container image that gets cached, so subsequent
# builds don't have to re-install them. The image layer is cached
# publicly in your project's package repository, so it is vital that
# no secrets are present in the container state or logs.
install: |
apt-get update -y -q
apt-get upgrade -y -q
apt-get install -y -q libasound2-dev libxinerama-dev libxrandr-dev libgl1-mesa-dev libxi-dev libxcursor-dev libudev-dev git build-essential imagemagick xvfb libwayland-dev wayland-protocols libxkbcommon-dev ninja-build
# Produce a binary artifact and place it in the mounted volume
run: |
echo " * Make Git happy"
git config --global --add safe.directory /home/runner/work/KincKong-Samples/KincKong-Samples
git config --global --add safe.directory /home/runner/work/KincKong-Samples/KincKong-Samples/Kinc
git config --global --add safe.directory /home/runner/work/KincKong-Samples/KincKong-Samples/Kinc/Tools/linux_arm
git config --global --add safe.directory /home/runner/work/KincKong-Samples/KincKong-Samples/Kinc/Tools/linux_arm64
echo " * Get Submodules"
./get_dlc
echo " * Compile Shader"
cd Shader
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 00_empty"
cd 00_empty
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 01_triangle"
cd 01_triangle
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 02_matrix"
cd 02_matrix
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 03_colored_cube"
cd 03_colored_cube
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 04_textured_cube"
cd 04_textured_cube
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 05_camera_controls"
cd 05_camera_controls
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 06_render_targets"
cd 06_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 07_multiple_render_targets"
cd 07_multiple_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 08_float_render_targets"
cd 08_float_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 09_depth_render_targets"
cd 09_depth_render_targets
../Kinc/make -g opengl --compile
cd ..
echo " * Compile 10_cubemap"
cd 10_cubemap
../Kinc/make -g opengl --compile
cd ..