@@ -324,7 +324,7 @@ jobs:
324
324
with :
325
325
sha : ${{ github.sha }}
326
326
target : ${{ matrix.target }}
327
- category : defaulta
327
+ category : default
328
328
- name : Pack Testsuite
329
329
run : |
330
330
target=${{ matrix.target }}
@@ -359,22 +359,22 @@ jobs:
359
359
uses : actions/checkout@v4
360
360
with :
361
361
ref : ${{ needs.create_release.outputs.version }}
362
- - name : Download binaries for usage
363
- id : download_binaries
364
- env :
365
- GH_TOKEN : ${{ github.token }}
366
- run : |
367
- version="${{ needs.create_release.outputs.version }}"
368
- declare -A platform_targets=( ["arm64"]="aarch64-unknown-linux-gnu" ["amd64"]="x86_64-unknown-linux-gnu")
369
- mkdir -p ./ distro/
370
- for platform in ${!platform_targets[@]}; do
371
- target=${platform_targets[$platform]}
372
- gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/
373
- mkdir -p ./target/${target}/release
374
- tar x -C ./ target/${target}/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
375
- mkdir -p ./distro/linux/${platform}
376
- cp ./target/${target}/release/databend-* ./distro/linux/${platform}
377
- done
362
+ - name : Download artifacts for x86_64
363
+ uses : ./.github/actions/artifact_download
364
+ with :
365
+ sha : ${{ github.sha }}
366
+ target : x86_64-unknown-linux-gnu
367
+ category : udf
368
+ artifacts : metactl,meta,query
369
+ path : distro/linux/amd64
370
+ - name : Download artifacts for aarch64
371
+ uses : ./.github/actions/artifact_download
372
+ with :
373
+ sha : ${{ github.sha }}
374
+ target : aarch64-unknown-linux-gnu
375
+ category : udf
376
+ artifacts : metactl,meta,query
377
+ path : distro/linux/arm64
378
378
- name : Set up QEMU
379
379
uses : docker/setup-qemu-action@v3
380
380
- uses : ./.github/actions/setup_docker
@@ -444,22 +444,22 @@ jobs:
444
444
uses : actions/checkout@v4
445
445
with :
446
446
ref : ${{ needs.create_release.outputs.version }}
447
- - name : Download binaries for usage
448
- id : download_binaries
449
- env :
450
- GH_TOKEN : ${{ github.token }}
451
- run : |
452
- version="${{ needs.create_release.outputs.version }}"
453
- declare -A platform_targets=( ["arm64"]="aarch64-unknown-linux-gnu" ["amd64"]="x86_64-unknown-linux-gnu")
454
- mkdir -p ./ distro/
455
- for platform in ${!platform_targets[@]}; do
456
- target=${platform_targets[$platform]}
457
- gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/
458
- mkdir -p ./target/${target}/release
459
- tar x -C ./ target/${target}/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
460
- mkdir -p ./distro/linux/${platform}
461
- cp ./target/${target}/release/databend-* ./distro/linux/${platform }
462
- done
447
+ - name : Download artifacts for x86_64
448
+ uses : ./.github/actions/artifact_download
449
+ with :
450
+ sha : ${{ github.sha }}
451
+ target : x86_64-unknown-linux-gnu
452
+ category : udf
453
+ artifacts : ${{ matrix.service }}
454
+ path : distro/linux/amd64
455
+ - name : Download artifacts for aarch64
456
+ uses : ./.github/actions/artifact_download
457
+ with :
458
+ sha : ${{ github.sha }}
459
+ target : aarch64-unknown-linux-gnu
460
+ category : udf
461
+ artifacts : ${{ matrix.service } }
462
+ path : distro/linux/arm64
463
463
- name : Set up QEMU
464
464
uses : docker/setup-qemu-action@v3
465
465
- uses : ./.github/actions/setup_docker
@@ -507,7 +507,7 @@ jobs:
507
507
file : ./docker/${{ matrix.distro }}/${{ matrix.service }}.Dockerfile
508
508
509
509
distribution :
510
- runs-on : ubuntu-latest
510
+ runs-on : [self-hosted, X64, Linux, 4c8g, gcp]
511
511
needs : [create_release, build_default]
512
512
strategy :
513
513
matrix :
@@ -532,16 +532,14 @@ jobs:
532
532
id : target
533
533
run : |
534
534
echo 'target=${{ matrix.arch }}-unknown-linux-gnu' >> $GITHUB_OUTPUT
535
- - name : Download binaries for usage
536
- id : download_binaries
537
- env :
538
- GH_TOKEN : ${{ github.token }}
539
- run : |
540
- target=${{ steps.target.outputs.target }}
541
- version="${{ needs.create_release.outputs.version }}"
542
- mkdir -p ./distro/
543
- gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/
544
- tar x -C distro -f ./distro/databend-${version}-${target}.tar.gz
535
+ - name : Download artifacts
536
+ uses : ./.github/actions/artifact_download
537
+ with :
538
+ sha : ${{ github.sha }}
539
+ target : ${{ steps.target.outputs.target }}
540
+ category : udf
541
+ artifacts : metactl,meta,query
542
+ path : distro
545
543
- name : Build Packages
546
544
id : build_packages
547
545
run : |
@@ -587,7 +585,7 @@ jobs:
587
585
gpg_signing_key : ${{ secrets.GPG_KEY_DEB }}
588
586
589
587
sha256sums :
590
- needs : [create_release, linux , distribution]
588
+ needs : [create_release, publish , distribution]
591
589
runs-on : ubuntu-latest
592
590
steps :
593
591
- name : checkout
@@ -627,25 +625,20 @@ jobs:
627
625
target : all
628
626
629
627
sqlsmith :
630
- needs : [create_release, linux ]
631
- runs-on : ubuntu-latest
628
+ needs : [create_release, build_default ]
629
+ runs-on : [self-hosted, X64, Linux, 4c8g, gcp]
632
630
steps :
633
631
- uses : actions/checkout@v4
634
632
with :
635
633
ref : ${{ needs.create_release.outputs.version }}
636
- - name : Download artifact for release
637
- env :
638
- GH_TOKEN : ${{ github.token }}
639
- run : |
640
- version=${{ needs.create_release.outputs.version }}
641
- target=x86_64-unknown-linux-gnu
642
- mkdir -p ./distro/
643
- mkdir -p ./target/release/
644
- gh release download ${version} --pattern "databend-${version}-${target}.tar.gz" --dir distro/
645
- gh release download ${version} --pattern "databend-testsuite-${version}-${target}.tar.gz" --dir distro/
646
- tar x -C ./target/release -f ./distro/databend-${version}-${target}.tar.gz --strip-components 1 bin/
647
- tar x -C ./target/release -f ./distro/databend-testsuite-${version}-${target}.tar.gz --strip-components 1 bin/
648
- chmod +x ./target/release/databend-*
634
+ - name : Download artifacts
635
+ uses : ./.github/actions/artifact_download
636
+ with :
637
+ sha : ${{ github.sha }}
638
+ target : x86_64-unknown-linux-gnu
639
+ category : udf
640
+ artifacts : meta,query,sqlsmith
641
+ path : distro
649
642
- name : Run sqlsmith
650
643
timeout-minutes : 60
651
644
shell : bash
@@ -657,20 +650,20 @@ jobs:
657
650
with :
658
651
name : test-sqlsmith
659
652
660
- # bindings_python:
661
- # if: inputs.stable
662
- # needs: create_release
663
- # uses: ./.github/workflows/bindings.python.yml
664
- # secrets: inherit
665
- # with:
666
- # tag: ${{ needs.create_release.outputs.version }}
653
+ bindings_python :
654
+ if : inputs.stable
655
+ needs : create_release
656
+ uses : ./.github/workflows/bindings.python.yml
657
+ secrets : inherit
658
+ with :
659
+ tag : ${{ needs.create_release.outputs.version }}
667
660
668
661
notify :
669
662
runs-on : ubuntu-latest
670
663
if : always()
671
664
needs :
672
665
- create_release
673
- - linux
666
+ - publish
674
667
- docker_all_in_one
675
668
- docker_service
676
669
- distribution
0 commit comments