forked from shramov/tll-http
-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.39 KB
/
ci.yml
File metadata and controls
41 lines (38 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: CI
on: [push, pull_request]
jobs:
build:
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
compiler: [gcc]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
submodules: true
# - uses: actions/cache@v4
# with:
# path: /home/runner/.ccache
# key: ccache:${{ matrix.os }}:${{ github.sha }}
# restore-keys: 'ccache:${{ matrix.os }}:'
- name: update
run: |
echo deb https://psha.org.ru/debian/ `echo ${{ matrix.os }} | tr -d -` contrib backports | sudo tee /etc/apt/sources.list.d/psha.org.ru.list
sudo wget -O/etc/apt/trusted.gpg.d/psha.org.ru.gpg https://psha.org.ru/debian/pubkey.gpg
sudo apt update
- name: disable man-db trigger # See https://github.com/actions/runner-images/issues/10977
run: |
echo "set man-db/auto-update false" | sudo debconf-communicate
sudo dpkg-reconfigure man-db
- name: install deps
run: sudo apt install ccache cmake meson pkg-config libfmt-dev libtll-dev libev-dev libwebsockets-dev libcurl4-openssl-dev libuv1-dev libssl-dev python3-pytest python3-decorator python3-tll python3-websockets
- name: configure
run: meson build
- name: build
run: ninja -vC build -j2
- name: test
run: |
meson test -C build --no-rebuild --print-errorlogs -v
# vim: sts=2 sw=2 et