Skip to content

Commit 1ae1800

Browse files
committed
download latest libchdb
1 parent f194176 commit 1ae1800

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020
6.x
2121
8.x
2222
cache: true
23-
env:
24-
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2523
- name: Download chdb library
26-
run: ./update_libchdb.sh v1.2.0
24+
run: ./update_libchdb.sh
2725
- run: dotnet build --configuration Release
2826
- name: Create the packages
2927
run: dotnet pack --configuration Release --include-symbols
3028
- name: Publish the package to nuget.org
3129
run: dotnet nuget push nupkg/*.nupkg -k $NUGET_AUTH_TOKEN -s https://api.nuget.org/v3/index.json
3230
env:
33-
NUGET_AUTH_TOKEN: ${{ secrets.NUGET_TOKEN }}
31+
NUGET_AUTH_TOKEN: ${{secrets.NUGET_TOKEN}}

.github/workflows/dotnet.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
strategy:
1616
matrix:
1717
dotnet-version: ['8.x' ]
18-
18+
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Setup .NET Core 6.x
@@ -37,8 +37,8 @@ jobs:
3737
# path: libchdb.so
3838
# key: ${{ runner.os }}-libchdb
3939
- name: Download chdb library
40-
if: steps.cache-libchdb.outputs.cache-hit != 'true'
41-
run: ./update_libchdb.sh v1.2.0
40+
# if: steps.cache-libchdb.outputs.cache-hit != 'true'
41+
run: ./update_libchdb.sh
4242
# - uses: actions/cache@v3
4343
# with:
4444
# path: ~/.nuget/packages

update_libchdb.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@
44
case "$(uname -s)" in
55
Linux)
66
if [[ $(uname -m) == "aarch64" ]]; then
7-
PLATFORM="linux-aarch64-libchdb.tar.gz"
7+
PLATFORM="linux-aarch64"
88
else
9-
PLATFORM="linux-x86_64-libchdb.tar.gz"
9+
PLATFORM="linux-x86_64"
1010
fi
1111
;;
1212
Darwin)
1313
if [[ $(uname -m) == "arm64" ]]; then
14-
PLATFORM="macos-arm64-libchdb.tar.gz"
14+
PLATFORM="macos-arm64"
1515
else
16-
PLATFORM="macos-x86_64-libchdb.tar.gz"
16+
PLATFORM="macos-x86_64"
1717
fi
1818
;;
1919
*)
@@ -26,9 +26,9 @@ esac
2626
LATEST_RELEASE=$(curl --silent "https://api.github.com/repos/chdb-io/chdb/releases/latest" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
2727
RELEASE=${1:-$LATEST_RELEASE}
2828

29-
DOWNLOAD_URL="https://github.com/chdb-io/chdb/releases/download/$RELEASE/$PLATFORM"
29+
DOWNLOAD_URL="https://github.com/chdb-io/chdb/releases/download/$RELEASE/$PLATFORM-libchdb.tar.gz"
3030

31-
echo "Downloading $PLATFORM from $DOWNLOAD_URL (latest is $LATEST_RELEASE)"
31+
echo "Downloading $PLATFORM-libchdb.tar.gz from $DOWNLOAD_URL (latest is $LATEST_RELEASE)"
3232

3333
# Download the file
3434
curl -L -o libchdb.tar.gz "$DOWNLOAD_URL"

0 commit comments

Comments
 (0)