forked from mattn/go-sqlite3
-
Notifications
You must be signed in to change notification settings - Fork 0
119 lines (104 loc) · 3.29 KB
/
go.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
name: Go
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
name: Test
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
go: ['1.22', '1.23']
fail-fast: false
env:
OS: ${{ matrix.os }}
GO: ${{ matrix.go }}
steps:
- if: startsWith(matrix.os, 'macos')
run: |
brew update
# Handle issues with the upgrade to icu4c v76.
[[ -e "$(brew --prefix)/opt/icu4c" ]] || \
brew reinstall icu4c
- uses: actions/setup-go@v2
with:
go-version: ${{ matrix.go }}
- uses: actions/checkout@v2
- name: 'Tags: default'
run: go test -race -v
- name: 'Tags: libsqlite3'
run: go test -race -v -tags "libsqlite3"
- name: 'Tags: full'
run: go test -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_os_trace sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
- name: 'Tags: vacuum'
run: go test -v -tags "sqlite_vacuum_full"
- name: 'Tags: copy bytes'
run: go test -v -tags "sqlite_copy_bytes"
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v1
# with:
# env_vars: OS,GO
# file: coverage.txt
# test-windows:
# name: Test for Windows
# runs-on: windows-latest
# defaults:
# run:
# shell: bash
#
# strategy:
# matrix:
# go: ['1.22', '1.23']
# fail-fast: false
# env:
# OS: windows-latest
# GO: ${{ matrix.go }}
# steps:
# - uses: msys2/setup-msys2@v2
# with:
# update: true
# install: mingw-w64-x86_64-toolchain mingw-w64-x86_64-sqlite3
# msystem: MINGW64
# path-type: inherit
#
# - uses: actions/setup-go@v2
# with:
# go-version: ${{ matrix.go }}
#
# - name: Add $GOPATH/bin to $PATH
# run: |
# echo "$(go env GOPATH)/bin" >> "$GITHUB_PATH"
# shell: msys2 {0}
#
# - uses: actions/checkout@v2
#
# - name: 'Tags: default'
# run: go build -race -v -tags ""
# shell: msys2 {0}
#
# - name: 'Tags: libsqlite3'
# run: go build -race -v -tags "libsqlite3"
# shell: msys2 {0}
#
# - name: 'Tags: full'
# run: |
# echo 'skip this test'
# echo go build -race -v -tags "sqlite_allow_uri_authority sqlite_app_armor sqlite_column_metadata sqlite_foreign_keys sqlite_fts5 sqlite_icu sqlite_introspect sqlite_json sqlite_math_functions sqlite_preupdate_hook sqlite_secure_delete sqlite_see sqlite_stat4 sqlite_trace sqlite_unlock_notify sqlite_userauth sqlite_vacuum_incr sqlite_vtable"
# shell: msys2 {0}
#
# - name: 'Tags: vacuum'
# run: go build -race -v -tags "sqlite_vacuum_full"
# shell: msys2 {0}
#
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v2
# with:
# env_vars: OS,GO
# file: coverage.txt
# based on: github.com/koron-go/_skeleton/.github/workflows/go.yml