v/.github/workflows/sdl_ci.yml

49 lines
1.1 KiB
YAML
Raw Normal View History

name: sdl CI
on:
push:
2022-05-20 17:27:35 +02:00
branches: [master]
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"
jobs:
v-compiles-sdl-examples:
runs-on: ubuntu-18.04
timeout-minutes: 30
2021-12-23 12:01:38 +01:00
env:
VFLAGS: -cc tcc
steps:
2021-12-23 12:01:38 +01:00
- uses: actions/checkout@v2
- name: Build V
run: make && sudo ./v symlink
- name: Clone sdl into .vmodules
run: |
git clone --depth 1 https://github.com/vlang/sdl
cd sdl
mkdir -p ~/.vmodules
ln -s $(pwd) ~/.vmodules/sdl
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev
sudo apt-get install --quiet -y libsdl2-mixer-dev libsdl2-image-dev
- name: Run tests
run: ./v test sdl
- name: Build sdl shared
run: ./v -shared -g sdl
- name: Build sdl examples
run: |
v shader sdl/examples/sdl_opengl_and_sokol
2021-12-23 12:01:38 +01:00
for example in sdl/examples/*; do
echo "v $example"
v "$example";
done