Skip to content

Commit 12cae33

Browse files
committed
Add build as dependency for package job
1 parent cc383ea commit 12cae33

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,18 @@ on:
99
type: string # [Windows, macOS, Linux]
1010

1111
jobs:
12-
prepare:
13-
runs-on: ["${{ inputs.runner }}"]
14-
steps:
15-
- name: Fix Timezone on Windows
16-
if: runner.os == 'Windows'
17-
run: echo "This is windows, so timezone will be fixed." && tzutil /s "W. Europe Standard Time"
18-
- name: Remove dist/ on macOS ARM
19-
if: runner.os == 'macOS' && runner.arch == 'ARM64'
20-
run: echo "Running macOS ARM64" && node -v && node -p "process.arch" && rm -rf dist
21-
- name: Install libudev on Linux (Ubuntu)
22-
if: runner.os == 'Linux'
23-
run: sudo apt-get update && sudo apt-get install libudev-dev
12+
# prepare:
13+
# runs-on: ["${{ inputs.runner }}"]
14+
# steps:
15+
# - name: Fix Timezone on Windows
16+
# if: runner.os == 'Windows'
17+
# run: echo "This is windows, so timezone will be fixed." && tzutil /s "W. Europe Standard Time"
18+
# - name: Remove dist/ on macOS ARM
19+
# if: runner.os == 'macOS' && runner.arch == 'ARM64'
20+
# run: echo "Running macOS ARM64" && node -v && node -p "process.arch" && rm -rf dist
21+
# - name: Install libudev on Linux (Ubuntu)
22+
# if: runner.os == 'Linux'
23+
# run: sudo apt-get update && sudo apt-get install libudev-dev
2424
build:
2525
runs-on: ["${{ inputs.runner }}"]
2626
steps:
@@ -44,6 +44,7 @@ jobs:
4444
path: dist/
4545
package:
4646
runs-on: ["${{ inputs.runner }}"]
47+
needs: [ build ]
4748
steps:
4849
- name: 'Download artifacts "build_${{ inputs.runner }}"'
4950
uses: actions/download-artifact@v3

0 commit comments

Comments
 (0)