mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix for latest zig (#2495)
* Fix for latest zig
* Revert "Use PATH instead of sudo to install bun for testing (#2460)"
This reverts commit 5fd406ca2f.
---------
Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
8
.github/workflows/bun-linux-build.yml
vendored
8
.github/workflows/bun-linux-build.yml
vendored
@@ -174,12 +174,6 @@ jobs:
|
||||
with:
|
||||
name: bun-${{matrix.tag}}
|
||||
path: ${{runner.temp}}/release
|
||||
- id: shim-path
|
||||
name: set path
|
||||
run: |
|
||||
stage_bin=$(mktemp -d)
|
||||
echo "stage_bin=$stage_bin"
|
||||
echo $stage_bin >> $GITHUB_PATH
|
||||
- id: install
|
||||
name: Install
|
||||
run: |
|
||||
@@ -187,7 +181,7 @@ jobs:
|
||||
unzip bun-${{matrix.tag}}.zip
|
||||
cd bun-${{matrix.tag}}
|
||||
chmod +x bun
|
||||
mv bun $stage_bin/bun
|
||||
sudo mv bun /usr/local/bin/bun
|
||||
bun --version
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
|
||||
8
.github/workflows/bun-mac-aarch64.yml
vendored
8
.github/workflows/bun-mac-aarch64.yml
vendored
@@ -411,12 +411,6 @@ jobs:
|
||||
with:
|
||||
name: ${{matrix.tag}}
|
||||
path: ${{runner.temp}}/release
|
||||
- id: shim-path
|
||||
name: set path
|
||||
run: |
|
||||
stage_bin=$(mktemp -d)
|
||||
echo "stage_bin=$stage_bin"
|
||||
echo $stage_bin >> $GITHUB_PATH
|
||||
- id: install
|
||||
name: Install
|
||||
run: |
|
||||
@@ -424,7 +418,7 @@ jobs:
|
||||
unzip ${{matrix.tag}}.zip
|
||||
cd ${{matrix.tag}}
|
||||
chmod +x bun
|
||||
mv bun $stage_bin/bun
|
||||
sudo mv bun /usr/local/bin/bun
|
||||
bun --version
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
|
||||
8
.github/workflows/bun-mac-x64-baseline.yml
vendored
8
.github/workflows/bun-mac-x64-baseline.yml
vendored
@@ -415,12 +415,6 @@ jobs:
|
||||
with:
|
||||
name: ${{matrix.tag}}
|
||||
path: ${{runner.temp}}/release
|
||||
- id: shim-path
|
||||
name: set path
|
||||
run: |
|
||||
stage_bin=$(mktemp -d)
|
||||
echo "stage_bin=$stage_bin"
|
||||
echo $stage_bin >> $GITHUB_PATH
|
||||
- id: install
|
||||
name: Install
|
||||
run: |
|
||||
@@ -428,7 +422,7 @@ jobs:
|
||||
unzip ${{matrix.tag}}.zip
|
||||
cd ${{matrix.tag}}
|
||||
chmod +x bun
|
||||
mv bun $stage_bin/bun
|
||||
sudo mv bun /usr/local/bin/bun
|
||||
bun --version
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
|
||||
8
.github/workflows/bun-mac-x64.yml
vendored
8
.github/workflows/bun-mac-x64.yml
vendored
@@ -417,12 +417,6 @@ jobs:
|
||||
with:
|
||||
name: ${{matrix.tag}}
|
||||
path: ${{runner.temp}}/release
|
||||
- id: shim-path
|
||||
name: set path
|
||||
run: |
|
||||
stage_bin=$(mktemp -d)
|
||||
echo "stage_bin=$stage_bin"
|
||||
echo $stage_bin >> $GITHUB_PATH
|
||||
- id: install
|
||||
name: Install
|
||||
run: |
|
||||
@@ -430,7 +424,7 @@ jobs:
|
||||
unzip ${{matrix.tag}}.zip
|
||||
cd ${{matrix.tag}}
|
||||
chmod +x bun
|
||||
mv bun $stage_bin/bun
|
||||
sudo mv bun /usr/local/bin/bun
|
||||
bun --version
|
||||
- id: test
|
||||
name: Test (node runner)
|
||||
|
||||
@@ -1181,7 +1181,7 @@ pub const Subprocess = struct {
|
||||
var actions = PosixSpawn.Actions.init() catch |err| return globalThis.handleError(err, "in posix_spawn");
|
||||
if (comptime Environment.isMac) {
|
||||
attr.set(
|
||||
os.darwin.POSIX_SPAWN_CLOEXEC_DEFAULT | os.darwin.POSIX_SPAWN_SETSIGDEF | os.darwin.POSIX_SPAWN_SETSIGMASK,
|
||||
bun.C.POSIX_SPAWN_CLOEXEC_DEFAULT | bun.C.POSIX_SPAWN_SETSIGDEF | bun.C.POSIX_SPAWN_SETSIGMASK,
|
||||
) catch |err| return globalThis.handleError(err, "in posix_spawn");
|
||||
} else if (comptime Environment.isLinux) {
|
||||
attr.set(
|
||||
|
||||
@@ -784,3 +784,7 @@ pub const sockaddr_dl = extern struct {
|
||||
// u_short sdl_route[16]; /* source routing information */
|
||||
//#endif
|
||||
};
|
||||
|
||||
pub usingnamespace @cImport({
|
||||
@cInclude("sys/spawn.h");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user