CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
106 lines
2.4 KiB
Tcl
106 lines
2.4 KiB
Tcl
#!/usr/bin/tclsh
|
|
#
|
|
# Run this script in order to generate a ZIP archive containing various
|
|
# command-line tools.
|
|
#
|
|
# The makefile that invokes this script must first build the following
|
|
# binaries:
|
|
#
|
|
# testfixture -- used to run this script
|
|
# sqlite3 -- the SQLite CLI
|
|
# sqldiff -- Program to diff two databases
|
|
# sqlite3_analyzer -- Space analyzer
|
|
# sqlite3_rsync -- Remote db sync
|
|
#
|
|
# On Windows, add:
|
|
#
|
|
# sqlite3.def
|
|
# sqlite3.dll
|
|
#
|
|
# Add the --snapshot option to generate a snapshot ZIP archive instead of
|
|
# a release ZIP archive.
|
|
#
|
|
set bSnapshot 0
|
|
for {set i 0} {$i<[llength $argv]} {incr i} {
|
|
set a [lindex $argv $i]
|
|
if {$a eq "-snapshot" || $a eq "--snapshot"} {
|
|
set bSnapshot 1
|
|
continue
|
|
}
|
|
puts stderr "unknown argument: $a"
|
|
exit 1
|
|
}
|
|
switch $tcl_platform(os) {
|
|
{Windows NT} {
|
|
set OS win
|
|
set EXE .exe
|
|
}
|
|
Linux {
|
|
set OS linux
|
|
set EXE {}
|
|
}
|
|
Darwin {
|
|
set OS osx
|
|
set EXE {}
|
|
}
|
|
default {
|
|
set OS unknown
|
|
set EXE {}
|
|
}
|
|
}
|
|
switch $tcl_platform(machine) {
|
|
arm64 {
|
|
set ARCH arm64
|
|
}
|
|
x86_64 {
|
|
set ARCH x64
|
|
}
|
|
amd64 -
|
|
intel {
|
|
if {$tcl_platform(pointerSize)==4} {
|
|
set ARCH x86
|
|
} else {
|
|
set ARCH x64
|
|
}
|
|
}
|
|
default {
|
|
set ARCH unk
|
|
}
|
|
}
|
|
if {$bSnapshot} {
|
|
set in [open [file join [file dirname [file dirname [info script]]] manifest]]
|
|
set manifest [read $in]
|
|
close $in
|
|
regexp {\nD (.{16})} $manifest all date
|
|
regsub -all {[-:T]} $date {} v2
|
|
} else {
|
|
set in [open [file join [file dirname [file dirname [info script]]] VERSION]]
|
|
set vers [read $in]
|
|
close $in
|
|
scan $vers %d.%d.%d v1 v2 v3
|
|
set v2 [format 3%02d%02d00 $v2 $v3]
|
|
}
|
|
|
|
set name sqlite-tools-$OS-$ARCH-$v2.zip
|
|
set filelist "sqlite3$EXE sqldiff$EXE sqlite3_analyzer$EXE sqlite3_rsync$EXE"
|
|
proc make_zip_archive {name filelist} {
|
|
file delete -force $name
|
|
puts "fossil test-filezip $name $filelist"
|
|
if {[catch {exec fossil test-filezip $name {*}$filelist}]} {
|
|
puts "^--- Unable. Trying again as:"
|
|
puts "zip $name $filelist"
|
|
file delete -force $name
|
|
exec zip $name {*}$filelist
|
|
}
|
|
puts "$name: [file size $name] bytes"
|
|
}
|
|
make_zip_archive $name $filelist
|
|
|
|
# On Windows, also try to construct a DLL
|
|
#
|
|
if {$OS eq "win" && [file exists sqlite3.dll] && [file exists sqlite3.def]} {
|
|
set name sqlite-dll-win-$ARCH-$v2.zip
|
|
set filelist [list sqlite3.def sqlite3.dll]
|
|
make_zip_archive $name $filelist
|
|
}
|