diff options
author | 2021-12-26 01:40:37 -0800 | |
---|---|---|
committer | 2021-12-26 01:40:37 -0800 | |
commit | 536d6ab302d537af2627f4837ec9ad0b5337dbf2 (patch) | |
tree | 48122eb3c00bd81745efb7144d6a8b2e44a6a23f /Makefile | |
parent | 99446ffa8a434ae1609898de529620c91aef7f68 (diff) | |
download | bun-536d6ab302d537af2627f4837ec9ad0b5337dbf2.tar.gz bun-536d6ab302d537af2627f4837ec9ad0b5337dbf2.tar.zst bun-536d6ab302d537af2627f4837ec9ad0b5337dbf2.zip |
github actions (#91)
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update Dockerfile
* switch
* :hushed:
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* wip
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* cache is broken
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update bun.yml
* bust it
* Update Dockerfile
* jm
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update Dockerfile
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* wip
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update Makefile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* pass executablePath
* alright
* Update Makefile
* Update Dockerfile
* Update Dockerfile
* Update Makefile
* Update Makefile
* Update Dockerfile
* lets try that
* Update Dockerfile
* Update bun.yml
* hm
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* not interactive
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* simplify this
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* missing
* Update Dockerfile
* Update Dockerfile
* wrong dir
* Update Dockerfile
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update bun.yml
* ordering
* Update Dockerfile
* Update bun.yml
* run-test file
* pass github workspace
* hm
* Update bun.yml
* copy the file
* Update run-test.sh
* Update bun.yml
* Update bun.yml
* Update bun.yml
* try this way
* Update bun.yml
* maybe?
* Update bun.yml
* maybe taht's it?
* maybe this
* cache
* up
* Update bun.yml
* Update bun.yml
* try this one i guess
* okay that might do it
* Update Dockerfile
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update chrome.json
* Update chrome.json
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* hm
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* fix caching I think
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* Update bun.yml
* maybe
* Update bun.yml
* fixup
* Update bun.yml
* Update bun.yml
* Update bun.yml
* maybe this time
* Update bun.yml
* Update Dockerfile
* random name
* ok
* explicit runner
* Update bun.yml
* Update bun.yml
* try deleting the files so the layer caching doesn't happen
* :runner:
* Update bun.yml
* Update bun.yml
* Update Dockerfile
* Update Dockerfile
* Update Dockerfile
* Dockerfile.base
* node.js
* Update bun.yml
* Update Dockerfile
* Update Dockerfile.base
* cleanup
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 24 |
1 files changed, 22 insertions, 2 deletions
@@ -14,12 +14,15 @@ MIN_MACOS_VERSION = 10.14 MARCH_NATIVE = ARCH_NAME := +DOCKER_BUILDARCH = ifeq ($(ARCH_NAME_RAW),arm64) ARCH_NAME = aarch64 + DOCKER_BUILDARCH = arm64 BREW_PREFIX_PATH = /opt/homebrew MIN_MACOS_VERSION = 11.0 else ARCH_NAME = x64 + DOCKER_BUILDARCH = amd64 BREW_PREFIX_PATH = /usr/local MARCH_NATIVE = -march=native endif @@ -284,6 +287,23 @@ zlib: cd $(BUN_DEPS_DIR)/zlib; cmake $(CMAKE_FLAGS) .; make CFLAGS=$(CFLAGS); cp $(BUN_DEPS_DIR)/zlib/libz.a $(BUN_DEPS_OUT_DIR)/libz.a +docker-login: + docker login ghcr.io --username jarred@jarredsumner.com + +docker-push-base: + BUILDKIT=1 docker build -f Dockerfile.base --build-arg GITHUB_WORKSPACE=/build --platform=linux/$(DOCKER_BUILDARCH) --tag bun-base --target base . + BUILDKIT=1 docker build -f Dockerfile.base --build-arg GITHUB_WORKSPACE=/build --platform=linux/$(DOCKER_BUILDARCH) --tag bun-base-with-zig-and-webkit --target base-with-zig-and-webkit . + BUILDKIT=1 docker build -f Dockerfile.base --build-arg GITHUB_WORKSPACE=/build --platform=linux/$(DOCKER_BUILDARCH) --tag bun-base-with-args --target base-with-args . + + docker tag bun-base ghcr.io/jarred-sumner/bun-base:latest + docker push ghcr.io/jarred-sumner/bun-base:latest + + docker tag bun-base-with-zig-and-webkit ghcr.io/jarred-sumner/bun-base-with-zig-and-webkit:latest + docker push ghcr.io/jarred-sumner/bun-base-with-zig-and-webkit:latest + + docker tag bun-base-with-args ghcr.io/jarred-sumner/bun-base-with-args:latest + docker push ghcr.io/jarred-sumner/bun-base-with-args:latest + require: @echo "Checking if the required utilities are available..." @cmake --version >/dev/null 2>&1 || (echo -e "ERROR: cmake is required."; exit 1) @@ -327,7 +347,7 @@ api: $(PRETTIER) --write src/api/schema.d.ts node-fallbacks: - @cd src/node-fallbacks; $(NPM_CLIENT) install; $(NPM_CLIENT) --silent build + @cd src/node-fallbacks; $(NPM_CLIENT) install; $(NPM_CLIENT) run --silent build fallback_decoder: @esbuild --target=esnext --bundle src/fallback.ts --format=iife --platform=browser --minify > src/fallback.out.js @@ -339,7 +359,7 @@ runtime_js_dev: @NODE_ENV=development esbuild --define:process.env.NODE_ENV="development" --target=esnext --bundle src/runtime/index.ts --format=iife --platform=browser --global-name=BUN_RUNTIME --external:/bun:* > src/runtime.out.js; cat src/runtime.footer.js >> src/runtime.out.js bun_error: - @cd packages/bun-error; $(NPM_CLIENT) install; $(NPM_CLIENT) --silent build + @cd packages/bun-error; $(NPM_CLIENT) install; $(NPM_CLIENT) run --silent build generate-install-script: @rm -f $(PACKAGES_REALPATH)/bun/install.js |