Skip to content

Commit ca81468

Browse files
committed
gh: test on macos arm64
1 parent b2d5e56 commit ca81468

File tree

5 files changed

+35
-8
lines changed

5 files changed

+35
-8
lines changed

.github/workflows/linux.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0
18+
fetch-depth: 1
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
@@ -25,4 +25,4 @@ jobs:
2525
- name: Test Race
2626
run: go test -race ./...
2727
- name: Test Builds
28-
run: make test_build
28+
run: make test_build --jobs=4

.github/workflows/macos.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test fastwalk on macOS
1+
name: Test fastwalk on macOS amd64
22

33
on:
44
push:
@@ -8,14 +8,14 @@ on:
88

99
jobs:
1010
build:
11-
runs-on: macos-latest
11+
runs-on: macos-13
1212
strategy:
1313
matrix:
1414
go: [1.21, 1.22]
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0
18+
fetch-depth: 1
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:

.github/workflows/macos_arm64.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Test fastwalk on macOS arm64
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: macos-latest
12+
strategy:
13+
matrix:
14+
go: [1.21, 1.22]
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 1
19+
- name: Set up Go
20+
uses: actions/setup-go@v5
21+
with:
22+
go-version: ${{ matrix.go }}
23+
- name: Test
24+
run: go test ./...
25+
- name: Test Race
26+
run: go test -race ./...

.github/workflows/windows.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,10 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v4
1717
with:
18-
fetch-depth: 0
18+
fetch-depth: 1
1919
- name: Set up Go
2020
uses: actions/setup-go@v5
2121
with:
2222
go-version: ${{ matrix.go }}
23-
- name: Test
24-
run: go test ./...
2523
- name: Test Race
2624
run: go test -race ./...

fastwalk_test.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,9 @@ func maxPathLength(t testing.TB) (root string, pathMax int) {
321321
// Test that we can handle PATH_MAX. This is mostly for the Unix tests
322322
// where we pass a buffer to ReadDirect (often getdents64(2)).
323323
func TestFastWalk_LongPath(t *testing.T) {
324+
if runtime.GOOS == "windows" {
325+
t.Skip("test not needed on Windows")
326+
}
324327
root, pathMax := maxPathLength(t)
325328
t.Log("PATH_MAX:", pathMax)
326329

0 commit comments

Comments
 (0)