Skip to content

Commit cc24f99

Browse files
committed
ci: action workflow format
1 parent 4300984 commit cc24f99

File tree

2 files changed

+12
-16
lines changed

2 files changed

+12
-16
lines changed

.github/workflows/npm_release.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,13 @@ jobs:
1212
build:
1313
name: Build
1414
runs-on: macos-latest
15-
steps:
16-
- uses: maxim-lobanov/setup-xcode@v1
17-
with:
18-
xcode-version: latest-stable
1915
outputs:
2016
npm_version: ${{ steps.npm_version_output.outputs.NPM_VERSION }}
2117
npm_tag: ${{ steps.npm_version_output.outputs.NPM_TAG }}
2218
steps:
19+
- uses: maxim-lobanov/setup-xcode@v1
20+
with:
21+
xcode-version: latest-stable
2322
- uses: actions/checkout@v3
2423
with:
2524
fetch-depth: 0
@@ -73,12 +72,11 @@ jobs:
7372
test:
7473
name: Test
7574
runs-on: macos-latest
76-
steps:
77-
- uses: maxim-lobanov/setup-xcode@v1
78-
with:
79-
xcode-version: latest-stable
8075
needs: build
8176
steps:
77+
- uses: maxim-lobanov/setup-xcode@v1
78+
with:
79+
xcode-version: latest-stable
8280
- uses: actions/checkout@v3
8381
- name: LLVM cache
8482
uses: actions/cache@v3

.github/workflows/pull_request.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,9 @@ jobs:
99
name: Build
1010
runs-on: macos-latest
1111
steps:
12-
- uses: maxim-lobanov/setup-xcode@v1
13-
with:
14-
xcode-version: latest-stable
15-
steps:
12+
- uses: maxim-lobanov/setup-xcode@v1
13+
with:
14+
xcode-version: latest-stable
1615
- uses: actions/checkout@v3
1716
with:
1817
fetch-depth: 0
@@ -57,12 +56,11 @@ jobs:
5756
test:
5857
name: Test
5958
runs-on: macos-latest
60-
steps:
61-
- uses: maxim-lobanov/setup-xcode@v1
62-
with:
63-
xcode-version: latest-stable
6459
needs: build
6560
steps:
61+
- uses: maxim-lobanov/setup-xcode@v1
62+
with:
63+
xcode-version: latest-stable
6664
- uses: actions/checkout@v3
6765
- name: LLVM cache
6866
uses: actions/cache@v3

0 commit comments

Comments
 (0)