fix(repo): fix freebsd hanging issue (#20042)
This commit is contained in:
parent
0f7363e2de
commit
f28fc3bc84
11
.github/workflows/publish.yml
vendored
11
.github/workflows/publish.yml
vendored
@ -155,11 +155,12 @@ jobs:
|
|||||||
build-freebsd:
|
build-freebsd:
|
||||||
runs-on: macos-12
|
runs-on: macos-12
|
||||||
name: Build FreeBSD
|
name: Build FreeBSD
|
||||||
|
timeout-minutes: 45
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- name: Build
|
- name: Build
|
||||||
id: build
|
id: build
|
||||||
uses: cross-platform-actions/action@v0.15.0
|
uses: cross-platform-actions/action@v0.21.0
|
||||||
env:
|
env:
|
||||||
DEBUG: napi:*
|
DEBUG: napi:*
|
||||||
RUSTUP_IO_THREADS: 1
|
RUSTUP_IO_THREADS: 1
|
||||||
@ -167,7 +168,7 @@ jobs:
|
|||||||
operating_system: freebsd
|
operating_system: freebsd
|
||||||
version: '13.2'
|
version: '13.2'
|
||||||
architecture: x86-64
|
architecture: x86-64
|
||||||
environment_variables: DEBUG RUSTUP_IO_THREADS
|
environment_variables: DEBUG RUSTUP_IO_THREADS CI
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
env
|
env
|
||||||
@ -191,9 +192,13 @@ jobs:
|
|||||||
mkdir -p /Users/runner/work/_temp/_github_workflow
|
mkdir -p /Users/runner/work/_temp/_github_workflow
|
||||||
echo "{}" > /Users/runner/work/_temp/_github_workflow/event.json
|
echo "{}" > /Users/runner/work/_temp/_github_workflow/event.json
|
||||||
pnpm install --frozen-lockfile --ignore-scripts
|
pnpm install --frozen-lockfile --ignore-scripts
|
||||||
pnpm nx run-many --target=build-native -- --target=x86_64-unknown-freebsd
|
pnpm nx run-many --outputStyle stream --target=build-native -- --target=x86_64-unknown-freebsd
|
||||||
|
pnpm nx reset
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
echo "KILL ALL NODE PROCESSES"
|
||||||
|
killall node
|
||||||
|
echo "COMPLETE"
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user