Skip to content

Commit 4592aa7

Browse files
committed
More tweaks for Actions.
- When a .github/workflows/*.yml file changes, skip running unaffected builds. - We need git to be installed for git-version.h generation.
1 parent 8bc363c commit 4592aa7

File tree

5 files changed

+32
-2
lines changed

5 files changed

+32
-2
lines changed

.github/workflows/cygwin-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Test rsync on Cygwin
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore:
7+
- '.github/workflows/*.yml'
8+
- '!.github/workflows/cygwin-build.yml'
69
pull_request:
710
branches: [ master ]
11+
paths-ignore:
12+
- '.github/workflows/*.yml'
13+
- '!.github/workflows/cygwin-build.yml'
814
schedule:
915
- cron: '42 8 * * *'
1016

.github/workflows/freebsd-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Test rsync on FreeBSD
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore:
7+
- '.github/workflows/*.yml'
8+
- '!.github/workflows/freebsd-build.yml'
69
pull_request:
710
branches: [ master ]
11+
paths-ignore:
12+
- '.github/workflows/*.yml'
13+
- '!.github/workflows/freebsd-build.yml'
814
schedule:
915
- cron: '42 8 * * *'
1016

@@ -22,7 +28,7 @@ jobs:
2228
with:
2329
usesh: true
2430
prepare: |
25-
pkg install -y bash autotools m4 devel/xxhash zstd liblz4 python3 archivers/liblz4
31+
pkg install -y bash autotools m4 devel/xxhash zstd liblz4 python3 archivers/liblz4 git
2632
run: |
2733
freebsd-version
2834
./configure --with-rrsync -disable-zstd --disable-md2man --disable-xxhash --disable-lz4

.github/workflows/macos-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Test rsync on macOS
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore:
7+
- '.github/workflows/*.yml'
8+
- '!.github/workflows/macos-build.yml'
69
pull_request:
710
branches: [ master ]
11+
paths-ignore:
12+
- '.github/workflows/*.yml'
13+
- '!.github/workflows/macos-build.yml'
814
schedule:
915
- cron: '42 8 * * *'
1016

.github/workflows/solaris-build.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Test rsync on Solaris
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore:
7+
- '.github/workflows/*.yml'
8+
- '!.github/workflows/solaris-build.yml'
69
pull_request:
710
branches: [ master ]
11+
paths-ignore:
12+
- '.github/workflows/*.yml'
13+
- '!.github/workflows/solaris-build.yml'
814
schedule:
915
- cron: '42 8 * * *'
1016

@@ -22,7 +28,7 @@ jobs:
2228
with:
2329
usesh: true
2430
prepare: |
25-
pkg install bash automake gnu-m4 pkg://solaris/runtime/python-35 autoconf gcc
31+
pkg install bash automake gnu-m4 pkg://solaris/runtime/python-35 autoconf gcc git
2632
run: |
2733
uname -a
2834
./configure --with-rrsync -disable-zstd --disable-md2man --disable-xxhash --disable-lz4

.github/workflows/ubuntu-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,14 @@ name: Test rsync on Ubuntu
33
on:
44
push:
55
branches: [ master ]
6+
paths-ignore:
7+
- '.github/workflows/*.yml'
8+
- '!.github/workflows/ubuntu-build.yml'
69
pull_request:
710
branches: [ master ]
11+
paths-ignore:
12+
- '.github/workflows/*.yml'
13+
- '!.github/workflows/ubuntu-build.yml'
814
schedule:
915
- cron: '42 8 * * *'
1016

0 commit comments

Comments
 (0)