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:
Jarred Sumner
2023-03-27 18:22:13 -07:00
committed by GitHub
parent b2d90f07ba
commit cfceb26edd
6 changed files with 9 additions and 29 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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)

View File

@@ -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(

View File

@@ -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");
});