Skip to content

Commit

Permalink
ci: add test that build and run an example with -prod
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Nov 22, 2023
1 parent b9ea910 commit ab29206
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- "**.md"

jobs:
ubuntu-tcc:
ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 30
env:
Expand Down Expand Up @@ -63,19 +63,24 @@ jobs:
- name: Run tests
run: v test sdl

- name: Test SDL version
run: |
export CFLAGS="$(/tmp/sdl2-${SDL2_VERSION}/bin/sdl2-config --cflags --libs)"
VER="$(v run sdl/examples/version)"
echo "${SDL2_VERSION} == $VER ?"
test "${SDL2_VERSION}" = "$VER" || exit 1
- name: Build sdl examples
run: |
v shader sdl/examples/sdl_opengl_and_sokol
export CFLAGS="$(/tmp/sdl2-${SDL2_VERSION}/bin/sdl2-config --cflags --libs)"
v run sdl/examples/versions
v should-compile-all sdl/examples/
- name: Test SDL version
- name: Build and run sdl example with `-prod`
run: |
export CFLAGS="$(/tmp/sdl2-${SDL2_VERSION}/bin/sdl2-config --cflags --libs)"
VER="$(v run sdl/examples/version)"
echo "${SDL2_VERSION} == $VER ?"
test "${SDL2_VERSION}" = "$VER" || exit 1
v -cc gcc -prod run sdl/examples/versions
macos:
runs-on: macos-11
Expand Down

0 comments on commit ab29206

Please sign in to comment.