]> go.fuhry.dev Git - fsnotify.git/commitdiff
ci: update to use Go 1.19, kick off fewer builds, update x/sys (#484)
authorMartin Tournoij <martin@arp242.net>
Wed, 3 Aug 2022 13:36:21 +0000 (15:36 +0200)
committerGitHub <noreply@github.com>
Wed, 3 Aug 2022 13:36:21 +0000 (15:36 +0200)
We need to update x/sys to support GOARCH=loong64, which is new in Go
1.19.

Also kick off fewer builds; they regularly get hung in the queue as we
have quite a few test jobs now.

.github/workflows/build.yml
.github/workflows/staticcheck.yml
.github/workflows/test.yml
.github/workflows/vagrant.yml
.gitignore
go.mod
go.sum

index 59ef7dc25b56f20112f5f2d8a54b7abc077af8ee..4b20df61ef5cccef6238eec0bf9636f177287b13 100644 (file)
@@ -1,11 +1,14 @@
 name: 'build'
-on:   ['push', 'pull_request']
+on:
+  push:
+    paths: ['**.go', 'go.mod', '.github/workflows/*']
+
 jobs:
   cross-compile:
     strategy:
       fail-fast: false
       matrix:
-        go: ['1.16', '1.18']
+        go: ['1.16', '1.19']
     runs-on: ubuntu-latest
     steps:
       - name: setup Go
@@ -18,6 +21,7 @@ jobs:
 
       - name: build
         run: |
+          set -x
           for a in $(go tool dist list); do
             GOOS=${a%%/*} GOARCH=${a#*/} go build
           done
index 22e222aecf469bfdff4f0e17b370d58f56af3255..fdc031dc2eff191f594ac2594f289db428d366cc 100644 (file)
@@ -1,5 +1,8 @@
 name: 'staticcheck'
-on:   ['push', 'pull_request']
+on:
+  push:
+    paths: ['**.go', 'go.mod', '.github/workflows/*']
+
 jobs:
   staticcheck:
     name:    'staticcheck'
index 9f5856275f25bf81e4af04f8ac6478ee87bdfdf9..e926f07067e5d42cc5ff2bb68241d56f81201df6 100644 (file)
@@ -1,5 +1,8 @@
 name: 'test'
-on:   ['push', 'pull_request']
+on:
+  push:
+    paths: ['**.go', 'go.mod', '.github/workflows/*']
+
 jobs:
   test:
     strategy:
@@ -12,7 +15,7 @@ jobs:
           - windows-latest
         go:
           - '1.16'
-          - '1.18'
+          - '1.19'
     runs-on: ${{ matrix.os }}
     steps:
       - name: setup Go
index 76bce8a03c194e92aee271f77ec07cef373dac1e..691206e603e0e1b33b1bc3cd5f64655deef104bd 100644 (file)
@@ -1,7 +1,10 @@
-name: 'test'
-on:   ['push', 'pull_request']
+name: 'test-vagrant'
+on:
+  push:
+    paths: ['**.go', 'go.mod', '.github/workflows/*']
+
 jobs:
-  test:
+  test-vagrant:
     strategy:
       fail-fast: false
       matrix:
@@ -23,7 +26,7 @@ jobs:
       - name: setup Go
         uses: actions/setup-go@v3
         with:
-          go-version: '1.18'
+          go-version: '1.19'
 
       - name: test
         run: |
index 4cd0cbaf432cca59cd22f3ff746b05d36443a51e..32976995fcc52bc1e8d63b3d51dd192bdec70653 100644 (file)
@@ -1,6 +1,5 @@
-# Setup a Global .gitignore for OS and editor generated files:
-# https://help.github.com/articles/ignoring-files
-# git config --global core.excludesfile ~/.gitignore_global
+# go test -c output
+*.test
 
-.vagrant
-*.sublime-project
+# Output of go build ./cmd/fsnotify
+/fsnotify
diff --git a/go.mod b/go.mod
index 48cfd07fe2300937e06a0fa02d34ffcd50cb20bf..310fe96a65e81a95d8eff55867636371de57104c 100644 (file)
--- a/go.mod
+++ b/go.mod
@@ -2,9 +2,9 @@ module github.com/fsnotify/fsnotify
 
 go 1.16
 
-require golang.org/x/sys v0.0.0-20220412211240-33da011f77ad
+require golang.org/x/sys v0.0.0-20220731174439-a90be440212d
 
 retract (
-    v1.5.3 // Published an incorrect branch accidentally https://github.com/fsnotify/fsnotify/issues/445
-    v1.5.0 // Contains symlink regression https://github.com/fsnotify/fsnotify/pull/394
+       v1.5.3 // Published an incorrect branch accidentally https://github.com/fsnotify/fsnotify/issues/445
+       v1.5.0 // Contains symlink regression https://github.com/fsnotify/fsnotify/pull/394
 )
diff --git a/go.sum b/go.sum
index 7f2d82d5c1bc8f9ba6dd50162a2b3e441b306e74..b7c2d1127f0d1e5ac66261e91209289021d3d853 100644 (file)
--- a/go.sum
+++ b/go.sum
@@ -1,2 +1,2 @@
-golang.org/x/sys v0.0.0-20220412211240-33da011f77ad h1:ntjMns5wyP/fN65tdBD4g8J5w8n015+iIIs9rtjXkY0=
-golang.org/x/sys v0.0.0-20220412211240-33da011f77ad/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
+golang.org/x/sys v0.0.0-20220731174439-a90be440212d h1:Sv5ogFZatcgIMMtBSTTAgMYsicp25MXBubjXNDKwm80=
+golang.org/x/sys v0.0.0-20220731174439-a90be440212d/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=