Skip to content

Commit 8bc363c

Browse files
committed
Separate the builds and make Cygwin always run.
1 parent a9a3155 commit 8bc363c

File tree

6 files changed

+166
-129
lines changed

6 files changed

+166
-129
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 126 deletions
This file was deleted.

.github/workflows/cygwin-build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test rsync on Cygwin
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '42 8 * * *'
10+
11+
jobs:
12+
test:
13+
runs-on: windows-2022
14+
name: Test rsync on Cygwin
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: cygwin
20+
run: choco install -y --no-progress cygwin cyg-get
21+
- name: prep
22+
run: |
23+
cyg-get make autoconf automake gcc-core attr libattr-devel python39 python39-pip libzstd-devel liblz4-devel libssl-devel libxxhash0 libxxhash-devel
24+
echo "C:/tools/cygwin/bin" >>$Env:GITHUB_PATH
25+
- name: commonmark
26+
run: bash -c 'python3 -mpip install --user commonmark'
27+
- name: configure
28+
run: bash -c './configure --with-rrsync'
29+
- name: make
30+
run: bash -c 'make'
31+
- name: install
32+
run: bash -c 'make install'
33+
- name: info
34+
run: bash -c '/usr/local/bin/rsync --version'
35+
- name: check
36+
run: bash -c 'RSYNC_EXPECT_SKIPPED=acls-default,acls,chown,devices,dir-sgid,protected-regular make check'
37+
- name: ssl file list
38+
run: bash -c 'PATH="/usr/local/bin:$PATH" rsync-ssl --no-motd download.samba.org::rsyncftp/ || true'
39+
- name: save artifact
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: cygwin-bin
43+
path: |
44+
rsync.exe
45+
rsync-ssl
46+
rsync.1
47+
rsync-ssl.1
48+
rsyncd.conf.5
49+
rrsync.1
50+
rrsync

.github/workflows/freebsd-build.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
schedule:
9+
- cron: '42 8 * * *'
810

911
jobs:
1012
test:
@@ -14,7 +16,7 @@ jobs:
1416
- uses: actions/checkout@v4
1517
with:
1618
fetch-depth: 0
17-
- name: Test in FreeBSD
19+
- name: Test in FreeBSD VM
1820
id: test
1921
uses: vmactions/freebsd-vm@v1
2022
with:

.github/workflows/macos-build.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Test rsync on macOS
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '42 8 * * *'
10+
11+
jobs:
12+
test:
13+
runs-on: macos-latest
14+
name: Test rsync on macOS
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: prep
20+
run: |
21+
brew install automake openssl xxhash zstd lz4
22+
sudo pip3 install commonmark
23+
echo "/usr/local/bin" >>$GITHUB_PATH
24+
- name: configure
25+
run: CPPFLAGS=-I/usr/local/opt/openssl/include/ LDFLAGS=-L/usr/local/opt/openssl/lib/ ./configure --with-rrsync
26+
- name: make
27+
run: make
28+
- name: install
29+
run: sudo make install
30+
- name: info
31+
run: rsync --version
32+
- name: check
33+
run: sudo RSYNC_EXPECT_SKIPPED=acls-default,chmod-temp-dir,chown-fake,devices-fake,dir-sgid,protected-regular,xattrs-hlink,xattrs make check
34+
- name: ssl file list
35+
run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true
36+
- name: save artifact
37+
uses: actions/upload-artifact@v3
38+
with:
39+
name: macos-bin
40+
path: |
41+
rsync
42+
rsync-ssl
43+
rsync.1
44+
rsync-ssl.1
45+
rsyncd.conf.5
46+
rrsync.1
47+
rrsync

.github/workflows/solaris-build.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,18 @@ on:
55
branches: [ master ]
66
pull_request:
77
branches: [ master ]
8+
schedule:
9+
- cron: '42 8 * * *'
810

911
jobs:
10-
solaris-test:
12+
test:
1113
runs-on: ubuntu-latest
1214
name: Test rsync on Solaris
1315
steps:
1416
- uses: actions/checkout@v4
1517
with:
1618
fetch-depth: 0
17-
- name: Test in Solaris
19+
- name: Test in Solaris VM
1820
id: test
1921
uses: vmactions/solaris-vm@v1
2022
with:
@@ -27,3 +29,15 @@ jobs:
2729
make
2830
./rsync --version
2931
./rsync-ssl --no-motd download.samba.org::rsyncftp/ || true
32+
- name: save artifact
33+
uses: actions/upload-artifact@v3
34+
with:
35+
name: solaris-bin
36+
path: |
37+
rsync
38+
rsync-ssl
39+
rsync.1
40+
rsync-ssl.1
41+
rsyncd.conf.5
42+
rrsync.1
43+
rrsync

.github/workflows/ubuntu-build.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Test rsync on Ubuntu
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
schedule:
9+
- cron: '42 8 * * *'
10+
11+
jobs:
12+
test:
13+
runs-on: ubuntu-20.04
14+
name: Test rsync on Ubuntu
15+
steps:
16+
- uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
- name: prep
20+
run: |
21+
sudo apt-get install acl libacl1-dev attr libattr1-dev liblz4-dev libzstd-dev libxxhash-dev python3-cmarkgfm openssl
22+
echo "/usr/local/bin" >>$GITHUB_PATH
23+
- name: configure
24+
run: ./configure --with-rrsync
25+
- name: make
26+
run: make
27+
- name: install
28+
run: sudo make install
29+
- name: info
30+
run: rsync --version
31+
- name: check
32+
run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check
33+
- name: check30
34+
run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check30
35+
- name: check29
36+
run: sudo RSYNC_EXPECT_SKIPPED=crtimes make check29
37+
- name: ssl file list
38+
run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true
39+
- name: save artifact
40+
uses: actions/upload-artifact@v3
41+
with:
42+
name: ubuntu-bin
43+
path: |
44+
rsync
45+
rsync-ssl
46+
rsync.1
47+
rsync-ssl.1
48+
rsyncd.conf.5
49+
rrsync.1
50+
rrsync

0 commit comments

Comments
 (0)