cgosqlite: add support for compiling with SQLITE_ENABLE_API_ARMOR #125
This file contains hidden or 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
| name: test-sqlite | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| types: [opened, reopened, synchronize] | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macOS-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Set up Go | |
| uses: actions/setup-go@v4 | |
| with: | |
| go-version: '1.22' | |
| - name: Build | |
| run: go build -v ./... | |
| - name: Test | |
| run: go test -v ./... | |
| - name: Race | |
| run: go test -v -race ./... | |
| - name: Race with sqlite_enable_api_armor | |
| run: go test -v -race -tags sqlite_enable_api_armor | |
| - name: No CGO build | |
| run: CGO_ENABLED=0 go install ./... |