build multi-arch s9pks (#2601)

* build multi-arch s9pks

* remove images incrementally

* wip

* prevent rebuild

* fix sdk makefile

* fix hanging on uninstall

* fix build

* fix build

* fix build

* fix build (for real this time)

* fix git hash computation
This commit is contained in:
Aiden McClelland
2024-04-22 11:40:10 -06:00
committed by GitHub
parent 9eff920989
commit 003d110948
176 changed files with 1176 additions and 1799 deletions

View File

@@ -1,19 +1,23 @@
TS_FILES := $(shell find ./**/*.ts )
TS_FILES := $(shell git ls-files lib) lib/test/output.ts
version = $(shell git tag --sort=committerdate | tail -1)
.PHONY: test clean bundle fmt buildOutput check
test: $(TS_FILES) lib/test/output.ts
npm test
clean:
rm -rf dist/* | true
rm -rf dist
rm -f lib/test/output.ts
rm -rf node_modules
lib/test/output.ts: lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
lib/test/output.ts: node_modules lib/test/makeOutput.ts scripts/oldSpecToBuilder.ts
npm run buildOutput
buildOutput: lib/test/output.ts fmt
echo 'done'
bundle: dist | test fmt
touch dist
bundle: $(TS_FILES) package.json .FORCE node_modules test fmt
dist: $(TS_FILES) package.json node_modules README.md LICENSE
npx tsc
npx tsc --project tsconfig-cjs.json
cp package.json dist/package.json
@@ -21,9 +25,7 @@ bundle: $(TS_FILES) package.json .FORCE node_modules test fmt
cp LICENSE dist/LICENSE
touch dist
full-bundle:
make clean
make bundle
full-bundle: clean bundle
check:
npm run check
@@ -32,13 +34,10 @@ fmt: node_modules
npx prettier --write "**/*.ts"
node_modules: package.json
npm install
npm ci
publish: clean bundle package.json README.md LICENSE
publish: clean bundle package.json README.md LICENSE
cd dist && npm publish --access=public
link: bundle
cp package.json dist/package.json
cp README.md dist/README.md
cp LICENSE dist/LICENSE
link: bundle
cd dist && npm link
.FORCE: