2021-12-22 18:52:47 +03:00
|
|
|
name: sdl CI
|
|
|
|
|
|
|
|
on:
|
2022-05-15 09:06:01 +03:00
|
|
|
push:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
|
|
|
pull_request:
|
|
|
|
paths-ignore:
|
|
|
|
- "**.md"
|
2021-12-22 18:52:47 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
v-compiles-sdl-examples:
|
|
|
|
runs-on: ubuntu-18.04
|
2022-05-22 20:19:04 +03:00
|
|
|
if: github.event_name != 'push' || github.event.ref == 'refs/heads/master' || github.event.repository.full_name != 'vlang/v'
|
2021-12-22 18:52:47 +03:00
|
|
|
timeout-minutes: 30
|
2021-12-23 14:01:38 +03:00
|
|
|
env:
|
|
|
|
VFLAGS: -cc tcc
|
2021-12-22 18:52:47 +03:00
|
|
|
steps:
|
2021-12-23 14:01:38 +03: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: |
|
2022-03-22 18:36:23 +03:00
|
|
|
v shader sdl/examples/sdl_opengl_and_sokol
|
2022-07-10 20:05:04 +03:00
|
|
|
v should-compile-all sdl/examples/
|