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
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
@ -29,7 +29,8 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list; sudo apt-get update;
|
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
|
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
||||||
- name: Build v
|
- name: Build v
|
||||||
run: |
|
run: |
|
||||||
@ -159,7 +160,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list;
|
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 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
|
## sudo apt-get install --quiet -y libsdl2-dev libsdl2-ttf-dev libsdl2-mixer-dev libsdl2-image-dev
|
||||||
- name: Build V
|
- name: Build V
|
||||||
run: make -j4 && ./v -cc gcc -o v cmd/v
|
run: make -j4 && ./v -cc gcc -o v cmd/v
|
||||||
@ -432,17 +434,18 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
sudo rm -f /etc/apt/sources.list.d/dotnetdev.list /etc/apt/sources.list.d/microsoft-prod.list;
|
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 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 valgrind g++-9
|
||||||
## 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 libsdl2-mixer-dev libsdl2-image-dev
|
||||||
- name: Build V
|
- name: Build V
|
||||||
run: make -j4
|
run: make -j4
|
||||||
- name: g++ version
|
- name: g++ version
|
||||||
run: g++-9 --version
|
run: g++-9 --version
|
||||||
# - name: Running tests with g++
|
- name: V self compilation with g++
|
||||||
# run: ./v -cc g++-9 test-fixed
|
run: ./v -cc g++-9 -o v2 cmd/v && ./v2 -cc g++-9 -o v3 cmd/v
|
||||||
# - name: V self compilation with g++
|
## - name: Running tests with g++
|
||||||
# run: ./v -cc g++-9 -o v2 cmd/v && ./v2 -cc g++-9 -o v3 cmd/v
|
## run: ./v -cc g++-9 test-fixed
|
||||||
|
|
||||||
install-modules:
|
install-modules:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@ -512,4 +515,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: server
|
name: server
|
||||||
path: ${{github.workspace}}/reports/servers/index.html
|
path: ${{github.workspace}}/reports/servers/index.html
|
||||||
|
|
||||||
|
@ -175,6 +175,9 @@ v run tetris/tetris.v
|
|||||||
|
|
||||||
<img src='https://raw.githubusercontent.com/vlang/v/master/examples/tetris/screenshot.png' width=300>
|
<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.
|
If you plan to use the http package, you also need to install OpenSSL on non-Windows systems.
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user