diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..c835270 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.rv linguist-language=Rust diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b876750..54416d5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,14 @@ name: CI on: push: + branches: [main] + tags: ["v*"] pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true permissions: contents: read @@ -11,12 +18,13 @@ jobs: test: name: Raven ${{ matrix.os }} runs-on: ${{ matrix.os }} + timeout-minutes: 10 strategy: fail-fast: false matrix: os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - uses: martian56/setup-raven@v1 with: raven-version: "2.26.1" diff --git a/README.md b/README.md index 209bb8d..16ccb98 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # raven-sqlite +[![CI](https://github.com/martian56/raven-sqlite/actions/workflows/ci.yml/badge.svg)](https://github.com/martian56/raven-sqlite/actions/workflows/ci.yml) + SQLite for Raven, with the database engine bundled in. There is no system SQLite to install: the C amalgamation ships with the package and is compiled and linked into your program by `rvpm build`. You only need a C compiler, which @@ -9,7 +11,7 @@ Raven's FFI already requires. ```toml [dependencies] -"github.com/martian56/raven-sqlite" = "0.1" +"github.com/martian56/raven-sqlite" = "v0.2.0" ``` Needs Raven 2.26.1 or newer.