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