-
Notifications
You must be signed in to change notification settings - Fork 36
58 lines (54 loc) · 1.31 KB
/
linux.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: CI (linux)
on:
workflow_dispatch:
schedule:
- cron: '10 20 * * *'
pull_request:
paths:
- "**.zig"
- ".github/**"
push:
branches:
- main
paths:
- "**.zig"
- ".github/**"
jobs:
examples:
timeout-minutes: 10
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
zig: [0.12.0, master]
steps:
- uses: actions/checkout@v4
- uses: goto-bus-stop/setup-zig@v2
with:
version: ${{ matrix.zig }}
- name: Start services
uses: ikalnytskyi/action-setup-postgres@v6
with:
username: postgres
password: postgres
database: postgres
port: 5432
- name: mysql for ubuntu
uses: mirromutth/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
character set server: 'utf8'
collation server: 'utf8_general_ci'
mysql version: '8.3'
mysql database: 'public'
mysql root password: 'password'
mysql user: 'developer'
- name: Install deps
run: |
make install-deps
- name: Run examples
run: |
pkg-config --libs --cflags libpq mysqlclient
zig fmt --check src/
zig build
zig build run-all --summary all