-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: VALA/C CI | ||
on: [push, pull_request] | ||
jobs: | ||
native: | ||
runs-on: ubuntu-18.04 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v1 | ||
- name: Install meson | ||
run: | | ||
sudo python3 -m pip install --upgrade pip | ||
sudo pip3 install meson ninja | ||
- name: Install dependencies | ||
run: > | ||
sudo apt-get -qq install -y | ||
clang | ||
cmake | ||
libconfig-dev | ||
libgtest-dev | ||
libopus-dev | ||
libsodium-dev | ||
libvpx-dev | ||
pkg-config | ||
libgee-0.8-dev | ||
libgspell-1-dev | ||
libgtk-3-dev | ||
libjson-glib-dev | ||
libsoup2.4-dev | ||
libsqlcipher-dev | ||
libcanberra-dev | ||
libgstreamer1.0-dev | ||
libgstreamer-plugins-base1.0-dev | ||
valac | ||
wget | ||
- name: Build and install ToxCore | ||
run: | | ||
wget "https://github.com/TokTok/c-toxcore/archive/v0.2.9.tar.gz" | ||
tar -xzf v0.2.9.tar.gz | ||
cd c-toxcore-0.2.9 | ||
cmake -DCMAKE_INSTALL_PREFIX=/usr | ||
make | ||
sudo make install | ||
cd .. | ||
- name: Build | ||
run: meson build && ninja -C build | ||
- name: Test | ||
run: ninja -C build test | ||
- name: Install | ||
run: sudo ninja -C build install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters