mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: cleanup and fix sdl_ci.yml
This commit is contained in:
parent
a2468e1e0c
commit
b88a40ad80
53
.github/workflows/sdl_ci.yml
vendored
53
.github/workflows/sdl_ci.yml
vendored
@ -8,36 +8,43 @@ on:
|
|||||||
paths-ignore:
|
paths-ignore:
|
||||||
- "**.md"
|
- "**.md"
|
||||||
|
|
||||||
|
concurrency:
|
||||||
|
group: build-${{ github.event.pull_request.number || github.sha }}
|
||||||
|
cancel-in-progress: true
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
v-compiles-sdl-examples:
|
v-compiles-sdl-examples:
|
||||||
runs-on: ubuntu-18.04
|
runs-on: ubuntu-18.04
|
||||||
timeout-minutes: 30
|
timeout-minutes: 30
|
||||||
|
env:
|
||||||
|
VFLAGS: -cc tcc
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Build V
|
- name: Build V
|
||||||
run: make -j2 && ./v -cc gcc -o v cmd/v
|
run: make && sudo ./v symlink
|
||||||
|
|
||||||
- name: Clone sdl into .vmodules
|
- name: Clone sdl into .vmodules
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 https://github.com/vlang/sdl
|
git clone --depth 1 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: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get update
|
sudo apt-get update
|
||||||
sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
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
|
- name: Run tests
|
||||||
run: ./v test sdl
|
run: ./v test sdl
|
||||||
|
|
||||||
- name: Build sdl shared
|
- name: Build sdl shared
|
||||||
run: ./v -shared -g sdl
|
run: ./v -shared -g sdl
|
||||||
|
|
||||||
- name: Build sdl examples
|
- name: Build sdl examples
|
||||||
run: |
|
run: |
|
||||||
declare -a v_sdl_examples=('basic_window' 'tvintris')
|
for example in sdl/examples/*; do
|
||||||
for example in "${v_sdl_examples[@]}"; do
|
echo "v $example"
|
||||||
./v sdl/examples/$example
|
v "$example";
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user