Add target inventory executable for SDK images
main-release-gate / verify-and-release (push) Failing after 4s
next-build / build (push) Successful in 7s

This commit is contained in:
2026-10-13 11:22:39 -06:00
parent 3ab9d1a4bf
commit af8a33b1a0
4 changed files with 27 additions and 6 deletions
+2 -2
View File
@@ -33,10 +33,10 @@ jobs:
run: |
mkdir -p dist
git archive --format=tar.gz --output="dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz" HEAD
cp target/release/alkane-os dist/
cp bench-current.txt dist/
- name: Create private release
if: steps.version.outputs.release == 'true'
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 ci/release.py "${{ steps.version.outputs.tag }}" false "dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz" dist/bench-current.txt
run: python3 ci/release.py "${{ steps.version.outputs.tag }}" false "dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz" dist/alkane-os dist/bench-current.txt
+2 -3
View File
@@ -21,10 +21,9 @@ jobs:
run: |
mkdir -p dist
git archive --format=tar.gz --output="dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz" HEAD
cp target/release/libalkane_os.rlib dist/
cp target/release/alkane-os dist/
- name: Create private prerelease
if: steps.version.outputs.release == 'true'
env:
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python3 ci/release.py "${{ steps.version.outputs.tag }}" true "dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz"
run: python3 ci/release.py "${{ steps.version.outputs.tag }}" true "dist/alkane-os-${{ steps.version.outputs.version }}-source.tar.gz" dist/alkane-os
+3 -1
View File
@@ -16,6 +16,9 @@ simulator must record the first genuine rejection gate and Alkane OS must mine.
No live board is required by CI. Bench devices supply captures and independent
validation of the simulator.
The current executable lists target obligations (`alkane-os --list-targets`)
and its version. It does not start a miner or a network service.
The `main` branch has full tests and a conformance gate; releases are created
only after every required cell passes. `next` runs a build check and produces
release candidates. `ci/version-x.txt` is the manually edited major version.
@@ -33,4 +36,3 @@ python3 ci/check-conformance.py
The last command currently fails because simulator and device evidence are
still pending. It is a release gate, not a unit test.
+20
View File
@@ -0,0 +1,20 @@
use alkane_os::target_matrix;
fn main() {
match std::env::args().nth(1).as_deref() {
Some("--list-targets") => {
println!("control_board,hash_chip,algorithm");
for target in target_matrix() {
println!(
"{},{},{:?}",
target.control.id, target.chip.id, target.chip.algorithm
);
}
}
Some("--version") => println!("alkane-os {}", env!("CARGO_PKG_VERSION")),
_ => {
eprintln!("usage: alkane-os --list-targets | --version");
std::process::exit(2);
}
}
}