Skip to content

Commit 1a5954c

Browse files
committed
Fix test workflow
1 parent f12482a commit 1a5954c

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/test.yaml

+12-10
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ jobs:
1010
native-os-build:
1111
strategy:
1212
matrix:
13-
os: [ubuntu-latest, windows-latest, macOS-latest]
14-
arch: ["386", "arm"]
15-
exclude:
16-
- os: macos-latest
17-
node: "386"
18-
- os: macos-latest
19-
node: "arm"
13+
os: [ubuntu-latest, windows-latest, macos-latest]
2014

2115
runs-on: ${{ matrix.os }}
2216

@@ -42,9 +36,17 @@ jobs:
4236
shell: bash
4337
run: task build
4438

45-
- name: Cross-build
46-
shell: bash
47-
run: GOARCH=${{ matrix.arch }} task build
39+
- name: Cross-build for 386
40+
if: matrix.os != 'macos-latest'
41+
env:
42+
GOARCH: "386"
43+
run: task build
44+
45+
- name: Cross-build for arm
46+
if: matrix.os != 'macos-latest'
47+
env:
48+
GOARCH: "arm"
49+
run: task build
4850

4951
- name: Run unit tests
5052
run: task test

0 commit comments

Comments
 (0)