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
46 lines
1.5 KiB
Tcl
46 lines
1.5 KiB
Tcl
# Script to build ARM64-EC binaries on Windows.
|
|
#
|
|
# Run from the top-level of a check-out, on a Windows11 ARM machine that
|
|
# has Fossil installed, using a command like this:
|
|
#
|
|
# tclsh tool/mmkwinarm64ec.tcl
|
|
#
|
|
# Output will be a file named:
|
|
#
|
|
# sqlite-win-arm64ec-3MMPP00.zip
|
|
#
|
|
# Where MM is the minor version number and PP is that patch level.
|
|
#
|
|
puts "Running nmake..."
|
|
flush stdout
|
|
exec nmake /f Makefile.msc "PLATFORM=ARM64EC" "BCC=cl -nologo -arm64EC" "TCC=cl -nologo -arm64EC -I." "CFLAGS=-nologo -arm64EC -I." clean sqlite3.exe sqldiff.exe sqlite3_rsync.exe sqlite3.dll >@ stdout 2>@ stderr
|
|
|
|
proc check-type {file} {
|
|
set in [open "| link /dump /headers $file" rb]
|
|
set txt [read $in]
|
|
close $in
|
|
if {![string match {*8664 machine (x64) (ARM64X)*} $txt]} {
|
|
puts "$file is not an ARM64-EC binary"
|
|
puts "OUTPUT:\n$txt"
|
|
flush stdout
|
|
exit 1
|
|
}
|
|
puts "Confirmed: $file is an ARM64-EC binary"
|
|
}
|
|
check-type sqlite3.exe
|
|
check-type sqldiff.exe
|
|
check-type sqlite3_rsync.exe
|
|
check-type sqlite3.dll
|
|
|
|
set in [open VERSION rb]
|
|
set VERSION [read $in]
|
|
close $in
|
|
regexp {3.(\d+).(\d+)} $VERSION all minor patch
|
|
set filename [format sqlite-win-arm64ec-3%02d%02d00.zip $minor $patch]
|
|
|
|
puts "Constructing $filename..."
|
|
file delete -force $filename
|
|
exec fossil test-filezip $filename sqlite3.def sqlite3.dll sqlite3.exe sqldiff.exe sqlite3_rsync.exe >@ stdout 2>@ stderr
|
|
puts "$filename: [file size $filename] bytes"
|
|
exec fossil test-filezip -l $filename >@ stdout 2>@ stderr
|