bb85bb0040108c22063ef82d21740d85fbce2db3
[rsync.git] / .github / workflows / macos-build.yml
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