-
Notifications
You must be signed in to change notification settings - Fork 10
59 lines (52 loc) · 1.41 KB
/
ci.yaml
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
59
name: ci
on:
pull_request:
push:
branches:
- main
concurrency:
# Cancels pending runs when a PR gets updated.
group: ${{ github.head_ref || github.run_id }}-${{ github.actor }}
cancel-in-progress: true
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ "ubuntu-latest", "macos-latest", "windows-latest" ]
sqlite:
- version: 3.23.1
year: 2018
- version: 3.29.0
year: 2019
- version: 3.35.5
year: 2021
- version: 3.38.5
year: 2022
- version: 3.41.2
year: 2023
- version: 3.44.2
year: 2023
runs-on: ${{ matrix.os }}
env:
SQLITE_VERSION: ${{ matrix.sqlite.version }}
SQLITE_YEAR: ${{ matrix.sqlite.year }}
steps:
- uses: actions/checkout@v4
- uses: actions/cache@v3
with:
path: |
~/deps
zig-cache
~/.cache/zig
~/AppData/Local/zig
key: test-${{ runner.os }}-sqlite-${{ matrix.sqlite.version }}
- name: Test (Linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: sh ci/linux-x86_64-test.sh
- name: Test (MacOS)
if: ${{ matrix.os == 'macos-latest' }}
run: ci/macos-x86_64-test.sh
- name: Test (Windows)
if: ${{ matrix.os == 'windows-latest' }}
run: ci/windows-x86_64-test.ps1