mirror of
https://github.com/vlang/v.git
synced 2025-09-17 11:26:17 -04:00
ci: test v ~/.vmodules/sdl/setup.vsh
, to prevent future vpm regressions (#21306)
This commit is contained in:
parent
0f5da89394
commit
604eb6517f
28
.github/workflows/sdl_ci.yml
vendored
28
.github/workflows/sdl_ci.yml
vendored
@ -1,14 +1,17 @@
|
|||||||
name: sdl CI
|
name: sdl CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
- "**.yml"
|
- "**.yml"
|
||||||
|
- '!**/sdl_ci.yml'
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
- "**.yml"
|
- "**.yml"
|
||||||
|
- '!**/sdl_ci.yml'
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: sdl-ci-${{ github.event.pull_request.number || github.sha }}
|
group: sdl-ci-${{ github.event.pull_request.number || github.sha }}
|
||||||
@ -26,18 +29,21 @@ jobs:
|
|||||||
- name: Build V
|
- name: Build V
|
||||||
run: make && sudo ./v symlink
|
run: make && sudo ./v symlink
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
v retry 'sudo apt update'
|
||||||
|
v retry 'sudo apt install -y libsdl2-dev libsdl2-ttf-dev'
|
||||||
|
v retry 'sudo apt install -y libsdl2-mixer-dev libsdl2-image-dev'
|
||||||
|
|
||||||
- name: Clone sdl into .vmodules
|
- name: Clone sdl into .vmodules
|
||||||
run: |
|
run: |
|
||||||
.github/workflows/retry.sh git clone --depth 1 https://github.com/vlang/sdl
|
v retry 'git clone --filter=blob:none https://github.com/vlang/sdl'
|
||||||
cd sdl
|
cd sdl
|
||||||
mkdir -p ~/.vmodules
|
mkdir -p ~/.vmodules
|
||||||
ln -s $(pwd) ~/.vmodules/sdl
|
ln -s $(pwd) ~/.vmodules/sdl
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Ensure SDL setup works
|
||||||
run: |
|
run: ./v ~/.vmodules/sdl/setup.vsh
|
||||||
.github/workflows/retry.sh sudo apt-get update
|
|
||||||
.github/workflows/retry.sh sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev
|
|
||||||
.github/workflows/retry.sh sudo apt-get install --quiet -y libsdl2-mixer-dev libsdl2-image-dev
|
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: ./v test sdl
|
run: ./v test sdl
|
||||||
@ -49,3 +55,13 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
v shader sdl/examples/sdl_opengl_and_sokol
|
v shader sdl/examples/sdl_opengl_and_sokol
|
||||||
v should-compile-all sdl/examples/
|
v should-compile-all sdl/examples/
|
||||||
|
~/.vmodules/sdl/examples/versions/main
|
||||||
|
|
||||||
|
- name: Check SDL works, when installed through vpm
|
||||||
|
run: |
|
||||||
|
rm -rf sdl/
|
||||||
|
rm -rf ~/.vmodules/sdl
|
||||||
|
v retry 'v install sdl'
|
||||||
|
ls -la ~/.vmodules/sdl/
|
||||||
|
v ~/.vmodules/sdl/setup.vsh
|
||||||
|
v run ~/.vmodules/sdl/examples/versions
|
||||||
|
Loading…
x
Reference in New Issue
Block a user