mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: install libxi-dev and libxcursor-dev on ubuntu
This commit is contained in:
parent
702a80fc5a
commit
6a0cb3e552
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
@ -29,7 +29,8 @@ jobs:
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list; sudo apt-get update;
|
||||
sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
sudo apt-get install --quiet -y libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libxi-dev libxcursor-dev
|
||||
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
||||
- name: Build v
|
||||
run: |
|
||||
@ -159,7 +160,8 @@ jobs:
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list;
|
||||
sudo apt-get update;
|
||||
sudo apt-get install --quiet -y postgresql libpq-dev libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
sudo apt-get install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev valgrind
|
||||
sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libxi-dev libxcursor-dev
|
||||
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
||||
- name: Build V
|
||||
run: make -j4 && ./v -cc gcc -o v cmd/v
|
||||
@ -432,17 +434,18 @@ jobs:
|
||||
run: |
|
||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list;
|
||||
sudo apt-get update;
|
||||
sudo apt-get install --quiet -y postgresql libpq-dev libglfw3 libglfw3-dev libfreetype6-dev libssl-dev sqlite3 libsqlite3-dev
|
||||
sudo apt-get install --quiet -y postgresql libpq-dev libssl-dev sqlite3 libsqlite3-dev
|
||||
sudo apt-get install --quiet -y libglfw3 libglfw3-dev libfreetype6-dev libxi-dev libxcursor-dev
|
||||
sudo apt-get install --quiet -y valgrind g++-9
|
||||
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
||||
- name: Build V
|
||||
run: make -j4
|
||||
- name: g++ version
|
||||
run: g++-9 --version
|
||||
# - name: Running tests with g++
|
||||
# run: ./v -cc g++-9 test-fixed
|
||||
# - name: V self compilation with g++
|
||||
# run: ./v -cc g++-9 -o v2 cmd/v && ./v2 -cc g++-9 -o v3 cmd/v
|
||||
- name: V self compilation with g++
|
||||
run: ./v -cc g++-9 -o v2 cmd/v && ./v2 -cc g++-9 -o v3 cmd/v
|
||||
## - name: Running tests with g++
|
||||
## run: ./v -cc g++-9 test-fixed
|
||||
|
||||
install-modules:
|
||||
runs-on: ubuntu-latest
|
||||
|
@ -175,6 +175,9 @@ v run tetris/tetris.v
|
||||
|
||||
<img src='https://raw.githubusercontent.com/vlang/v/master/examples/tetris/screenshot.png' width=300>
|
||||
|
||||
NB: In order to build Tetris or 2048 (or anything else using `sokol` or `gg` graphics modules)
|
||||
on some Linux systems, you need to install `libxi-dev` and `libxcursor-dev` .
|
||||
|
||||
If you plan to use the http package, you also need to install OpenSSL on non-Windows systems.
|
||||
|
||||
```bash
|
||||
|
Loading…
Reference in New Issue
Block a user