Skip to content

Commit

Permalink
artifacts and tool test
Browse files Browse the repository at this point in the history
  • Loading branch information
vilinski committed Feb 10, 2024
1 parent 0514167 commit ff1f7a5
Showing 1 changed file with 17 additions and 22 deletions.
39 changes: 17 additions & 22 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ jobs:
run: dotnet restore

- name: Download chdb library
run: ./update_libchdb.sh

- name: Build
run: |
./update_libchdb.sh
# copy to the correct location
cp libchdb.so src/chdb/libchdb.so
ls -lahS src/chdb/libchdb*
- name: Build
run: dotnet build --no-restore --configuration Release
dotnet build --no-restore --configuration Release
- name: Test
run: dotnet test -c Release --no-build --logger trx --results-directory "TestResults-${{ matrix.rid }}"
Expand Down Expand Up @@ -113,11 +113,13 @@ jobs:
- uses: actions/checkout@v4

- name: Download chdb library
run: |
./update_libchdb.sh
# copy to the correct location
cp libchdb.so src/chdb/libchdb.so
ls -lahS src/chdb/libchdb*
run: ./update_libchdb.sh

- name: Upload libchdb Artifact
uses: actions/upload-artifact@v2
with:
name: libchdb
path: libchdb.so

- name: Pack
run: |
Expand All @@ -137,12 +139,11 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Download chdb library
run: |
./update_libchdb.sh
# copy to the correct location
cp libchdb.so src/chdb/libchdb.so
ls -lahS src/chdb/libchdb*
- name: Download Artifact
uses: actions/download-artifact@v2
with:
name: libchdb
path: libchdb.so

- name: Pack
run: |
Expand All @@ -152,16 +153,10 @@ jobs:
- name: Publish
run: dotnet nuget push nupkg/chdb-tool.*.nupkg --skip-duplicate --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_AUTH_TOKEN_CHDB }}

- name: Download chdb library
run: |
./update_libchdb.sh
ls -lahS src/chdb/libchdb*
# move to the correct location
cp libchdb.so src/chdb/libchdb.so
- name: Test chdb-tool
run: |
dotnet tool install --add-source ./nupkg --global chdb-tool
which chdb
cp libchdb.so /home/runner/.dotnet/tools/
chdb --help
chdb "select version()" PrettyCompact

0 comments on commit ff1f7a5

Please sign in to comment.