mirror of
https://github.com/oven-sh/bun
synced 2026-02-11 03:18:53 +00:00
Get bunx tests to pass on Windows (#9729)
* Get bunx tests to pass on Windows * wip * WIP * wip * wip * ads * asdf * makeOpenPath * almost revert * fix build * enoent * fix bun install git repos * cleanup * use custom zig stdlib from submodule * update dockerfile to copy zig stdlib sources * fix dockerfile, update gitmodules * fix dockerfile * fix build * fix build * fix symlinkat * fix build * fix build * Remove usages of unreachable * Fixup * Fixup * wip * fixup * Fix one of the bugs * asd * Normalize BUN_INSTALL_CACHE_DIR var * Set iterable to false when we're about to delete * Update bun.zig * I still can't repro this outside CI * i think that fixes it? * fix posix compile * factor out directory creation * update all install methods to use InstallDirState * move walker creation to init function * fix error cleanup * fix posix compile * all install tests pass locally * cleanup * [autofix.ci] apply automated fixes * Fix posix regressions --------- Co-authored-by: Dylan Conway <dylan.conway567@gmail.com> Co-authored-by: Meghan Denny <hello@nektro.net> Co-authored-by: Georgijs Vilums <georgijs.vilums@gmail.com> Co-authored-by: Georgijs <48869301+gvilums@users.noreply.github.com> Co-authored-by: Georgijs Vilums <georgijs@bun.sh> Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
20
.github/workflows/bun-linux-build.yml
vendored
20
.github/workflows/bun-linux-build.yml
vendored
@@ -233,16 +233,18 @@ jobs:
|
||||
run: |
|
||||
# If this hangs, it means something is seriously wrong with the build
|
||||
bun --version
|
||||
- id: install-dependnecies
|
||||
name: Install dependencies
|
||||
run: |
|
||||
sudo apt-get update && sudo apt-get install -y openssl
|
||||
bun install --verbose
|
||||
bun install --cwd=test --verbose
|
||||
bun install --cwd=packages/bun-internal-test --verbose
|
||||
|
||||
bun install --cwd=test/js/third_party/prisma --verbose
|
||||
|
||||
# Split these into multiple steps to make it clear which one fails
|
||||
- name: Install dependencies (apt-get)
|
||||
run: sudo apt-get update && sudo apt-get install -y openssl
|
||||
- name: Install dependencies (root)
|
||||
run: bun install --verbose
|
||||
- name: Install dependencies (test)
|
||||
run: bun install --cwd=test --verbose
|
||||
- name: Install dependencies (runner)
|
||||
run: bun install --cwd=packages/bun-internal-test --verbose
|
||||
- name: Install dependencies (prisma)
|
||||
run: bun install --cwd=test/js/third_party/prisma --verbose
|
||||
# This is disabled because the cores are ~5.5gb each
|
||||
# so it is easy to hit 50gb coredump downloads. Only enable if you need to retrive one
|
||||
|
||||
|
||||
17
.github/workflows/bun-mac-aarch64.yml
vendored
17
.github/workflows/bun-mac-aarch64.yml
vendored
@@ -47,8 +47,8 @@ jobs:
|
||||
tag: bun-obj-darwin-aarch64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
# - name: Checkout submodules
|
||||
# run: git submodule update --init --recursive --depth=1 --progress --force
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive --depth=1 --progress --force
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
@@ -416,12 +416,13 @@ jobs:
|
||||
run: |
|
||||
# If this hangs, it means something is seriously wrong with the build
|
||||
bun --version
|
||||
- id: install
|
||||
name: Install dependencies
|
||||
run: |
|
||||
bun install --verbose
|
||||
bun install --cwd=test --verbose
|
||||
bun install --cwd=packages/bun-internal-test --verbose
|
||||
# Split these into multiple steps to make it clear which one fails
|
||||
- name: "Install dependencies (root)"
|
||||
run: bun install --verbose
|
||||
- name: "Install dependencies (test)"
|
||||
run: bun install --cwd=test --verbose
|
||||
- name: "Install dependencies (runner)"
|
||||
run: bun install --cwd=packages/bun-internal-test --verbose
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
env:
|
||||
|
||||
2
.github/workflows/bun-mac-x64-baseline.yml
vendored
2
.github/workflows/bun-mac-x64-baseline.yml
vendored
@@ -53,6 +53,8 @@ jobs:
|
||||
# tag: bun-obj-darwin-aarch64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive --depth=1 --progress --force
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
|
||||
15
.github/workflows/bun-mac-x64.yml
vendored
15
.github/workflows/bun-mac-x64.yml
vendored
@@ -50,6 +50,8 @@ jobs:
|
||||
tag: bun-obj-darwin-x64
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive --depth=1 --progress --force
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
@@ -400,12 +402,13 @@ jobs:
|
||||
run: |
|
||||
# If this hangs, it means something is seriously wrong with the build
|
||||
bun --version
|
||||
- id: install
|
||||
name: Install dependencies
|
||||
run: |
|
||||
bun install --verbose
|
||||
bun install --cwd=test --verbose
|
||||
bun install --cwd=packages/bun-internal-test --verbose
|
||||
# Split these into multiple steps to make it clear which one fails
|
||||
- name: "Install dependencies (root)"
|
||||
run: bun install --verbose
|
||||
- name: "Install dependencies (test)"
|
||||
run: bun install --cwd=test --verbose
|
||||
- name: "Install dependencies (runner)"
|
||||
run: bun install --cwd=packages/bun-internal-test --verbose
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
env:
|
||||
|
||||
14
.github/workflows/bun-windows.yml
vendored
14
.github/workflows/bun-windows.yml
vendored
@@ -61,6 +61,8 @@ jobs:
|
||||
steps:
|
||||
- run: git config --global core.autocrlf false && git config --global core.eol lf
|
||||
- uses: actions/checkout@v4
|
||||
- name: Checkout submodules
|
||||
run: git submodule update --init --recursive --depth=1 --progress --force
|
||||
|
||||
- name: Login to GitHub Container Registry
|
||||
uses: docker/login-action@v3
|
||||
@@ -424,11 +426,13 @@ jobs:
|
||||
- uses: secondlife/setup-cygwin@v3
|
||||
with:
|
||||
packages: bash
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
bun install --verbose
|
||||
bun install --cwd=test --verbose
|
||||
bun install --cwd=packages/bun-internal-test --verbose
|
||||
# Split these into multiple steps to make it clear which one fails
|
||||
- name: Install dependencies (root)
|
||||
run: bun install --verbose
|
||||
- name: Install dependencies (test)
|
||||
run: bun install --cwd=test --verbose
|
||||
- name: Install dependencies (runner)
|
||||
run: bun install --cwd=packages/bun-internal-test --verbose
|
||||
- id: test
|
||||
name: Run tests
|
||||
env:
|
||||
|
||||
Reference in New Issue
Block a user