diff --git a/.github/workflows/deps.yaml b/.github/workflows/deps.yaml index c846e6ee..b3a92b6b 100644 --- a/.github/workflows/deps.yaml +++ b/.github/workflows/deps.yaml @@ -12,12 +12,12 @@ jobs: prepare: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - shell: bash run: make deps.header - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: duckdb_h path: duckdb.h @@ -26,12 +26,12 @@ jobs: needs: prepare runs-on: macos-13 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - shell: bash run: make deps.darwin.amd64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: darwin_amd64 path: deps/darwin_amd64/libduckdb.a @@ -40,12 +40,12 @@ jobs: needs: prepare runs-on: macos-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - shell: bash run: make deps.darwin.arm64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: darwin_arm64 path: deps/darwin_arm64/libduckdb.a @@ -54,12 +54,12 @@ jobs: needs: prepare runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - shell: bash run: make deps.linux.amd64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux_amd64 path: deps/linux_amd64/libduckdb.a @@ -68,7 +68,7 @@ jobs: needs: prepare runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - name: Install cross compile toolchain @@ -78,7 +78,7 @@ jobs: sudo apt install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu - shell: bash run: make deps.linux.arm64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: linux_arm64 path: deps/linux_arm64/libduckdb.a @@ -87,7 +87,7 @@ jobs: needs: prepare runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - uses: vmactions/freebsd-vm@v1 @@ -100,7 +100,7 @@ jobs: git run: gmake deps.freebsd.amd64 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: freebsd_amd64 path: deps/freebsd_amd64/libduckdb.a @@ -109,7 +109,7 @@ jobs: runs-on: ubuntu-latest needs: [darwin_amd64, darwin_arm64, linux_amd64, linux_arm64, freebsd_amd64] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ github.head_ref }} - shell: bash @@ -120,31 +120,31 @@ jobs: rm -f deps/linux_arm64/libduckdb.a rm -f deps/freebsd_amd64/libduckdb.a rm -f duckdb.h - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: duckdb_h path: . - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: darwin_amd64 path: deps/darwin_amd64 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: darwin_arm64 path: deps/darwin_arm64 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux_amd64 path: deps/linux_amd64 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: linux_arm64 path: deps/linux_arm64 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: freebsd_amd64 path: deps/freebsd_amd64 - name: Push static libraries - uses: stefanzweifel/git-auto-commit-action@v4 + uses: stefanzweifel/git-auto-commit-action@v5 with: commit_message: Re-build static libraries diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index fd63b922..53c92095 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -11,11 +11,11 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: - go-version: '1.21' + go-version: '1.22' cache: false - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: version: latest \ No newline at end of file diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index 3c388dcf..39b28735 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -13,11 +13,11 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - go: ["1.21"] + go: ["1.22"] fail-fast: false steps: - - uses: actions/setup-go@v4 + - uses: actions/setup-go@v5 with: go-version: ${{ matrix.go }} diff --git a/README.md b/README.md index 3bc67021..c586b98e 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ if err != nil { defer db.Close() ``` -Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/go1.21.6:src/database/sql/sql.go;l=781). That way, you can perform initialization steps in a callback function before opening the database. +Alternatively, you can use [sql.OpenDB](https://cs.opensource.google/go/go/+/refs/tags/go1.22.6:src/database/sql/sql.go;l=814). That way, you can perform initialization steps in a callback function before opening the database. Here's an example that installs and loads the JSON extension when opening a database with `sql.OpenDB(connector)`. ```go diff --git a/deps/darwin_amd64/libduckdb.a b/deps/darwin_amd64/libduckdb.a index b38e2262..19b70df9 100644 Binary files a/deps/darwin_amd64/libduckdb.a and b/deps/darwin_amd64/libduckdb.a differ diff --git a/deps/darwin_arm64/libduckdb.a b/deps/darwin_arm64/libduckdb.a index ef966dcb..e61bfc93 100644 Binary files a/deps/darwin_arm64/libduckdb.a and b/deps/darwin_arm64/libduckdb.a differ diff --git a/deps/freebsd_amd64/libduckdb.a b/deps/freebsd_amd64/libduckdb.a index 847b085f..f7ad5ffe 100644 Binary files a/deps/freebsd_amd64/libduckdb.a and b/deps/freebsd_amd64/libduckdb.a differ