d82b160b6d08f84c7a190a5909231f776c115bb9
[rsync.git] / .github / workflows / freebsd-build.yml
1 name: Test rsync on FreeBSD
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-latest
14     name: Test rsync on FreeBSD
15     steps:
16     - uses: actions/checkout@v4
17       with:
18         fetch-depth: 0
19     - name: Test in FreeBSD VM
20       id: test
21       uses: vmactions/freebsd-vm@v1
22       with:
23         usesh: true
24         prepare: |
25           pkg install -y bash autotools m4 devel/xxhash zstd liblz4 python3 archivers/liblz4
26         run: |
27           freebsd-version
28           ./configure --with-rrsync -disable-zstd --disable-md2man --disable-xxhash --disable-lz4
29           make
30           ./rsync --version
31           ./rsync-ssl --no-motd download.samba.org::rsyncftp/ || true
32     - name: save artifact
33       uses: actions/upload-artifact@v3
34       with:
35         name: freebsd-bin
36         path: |
37           rsync
38           rsync-ssl
39           rsync.1
40           rsync-ssl.1
41           rsyncd.conf.5
42           rrsync.1
43           rrsync