Skip to content

Commit

Permalink
ci: YAML fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
larpon committed Sep 1, 2023
1 parent cd9ee90 commit 2c2e0a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ jobs:
v -d sdl_no_compile_flags ~/.vmodules/shy/examples/hello_world
ubuntu-latest-build:
runs-on: ubuntu-20.04 # use 20.04 for now (SDL2 compile issue)
runs-on: ubuntu-latest # use 20.04 for now (SDL2 compile issue)
timeout-minutes: 20
env:
VFLAGS: -cc tcc -no-retry-compilation
Expand Down Expand Up @@ -260,16 +260,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-20.04] # use 20.04 for now (SDL2 compile issue)
os: [ubuntu-latest]
sdl-version: [2.0.9, 2.0.10, 2.0.12, 2.0.14, 2.0.16, 2.0.18, 2.0.20, 2.0.22, 2.24.0]
timeout-minutes: 20
env:
VFLAGS: -cc tcc -no-retry-compilation
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --quiet -y libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
curl -L https://www.libsdl.org/release/SDL2-${{ matrix.sdl-version }}.tar.gz -o SDL2.tar.gz
tar -zxvf SDL2.tar.gz
Expand All @@ -278,17 +276,17 @@ jobs:
cd SDL2-${{ matrix.sdl-version }}
mkdir build
cd build
../configure --prefix /tmp/sdl2-${{ matrix.sdl-version }}
../configure
make
make install
sudo make install
- name: Checkout V
uses: actions/checkout@v2
with:
repository: vlang/v

- name: Build local v
run: make -j4 && sudo ./v symlink
run: make && sudo ./v symlink

- name: Checkout SDL ${{ matrix.sdl-version }}
uses: actions/checkout@v2
Expand Down Expand Up @@ -324,9 +322,6 @@ jobs:

- name: Build shy examples
run: |
export CFLAGS="$(/tmp/sdl2-${{ matrix.sdl-version }}/bin/sdl2-config --cflags)"
export LDFLAGS="$(/tmp/sdl2-${{ matrix.sdl-version }}/bin/sdl2-config --libs)"
v -d sdl_no_compile_flags -skip-unused should-compile-all ~/.vmodules/shy/examples
v -d sdl_no_compile_flags -d shy_analyse should-compile-all ~/.vmodules/shy/examples
v -d sdl_no_compile_flags -d shy_vet should-compile-all ~/.vmodules/shy/examples
2 changes: 1 addition & 1 deletion .github/workflows/ci_visual_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: make && sudo ./v symlink

- name: Install sdl module
run:
run: |
git clone https://github.com/vlang/sdl.git ~/.vmodules/sdl
v run ~/.vmodules/sdl/setup.vsh
Expand Down

0 comments on commit 2c2e0a3

Please sign in to comment.