summaryrefslogtreecommitdiff
path: root/.github/workflows/build.yml
blob: 44f9f72cd8705b6511f11e9db6e8998482bfe306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: build

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]
  schedule:
    - cron: '42 5 * * *'

jobs:

  linux-build:
    runs-on: ubuntu-20.04
    steps:
    - uses: actions/checkout@v2
    - name: prep
      run: |
        sudo apt-get install acl libacl1-dev attr libattr1-dev liblz4-dev libzstd-dev libxxhash-dev python3-cmarkgfm openssl
        echo "::add-path::/usr/local/bin"
    - name: configure
      run: ./configure --with-included-popt --with-included-zlib
    - name: make
      run: make
    - name: install
      run: sudo make install
    - name: info
      run: rsync --version
    - name: check
      run: sudo make check
    - name: check30
      run: sudo make check30
    - name: check29
      run: sudo make check29
    - name: ssl file list
      run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true

  macos-build:
    runs-on: macos-latest
    steps:
    - uses: actions/checkout@v2
    - name: prep
      run: |
        brew install automake openssl xxhash zstd lz4
        sudo pip3 install commonmark
        echo "::add-path::/usr/local/bin"
    - name: configure
      run: CPPFLAGS=-I/usr/local/opt/openssl/include/ LDFLAGS=-L/usr/local/opt/openssl/lib/ ./configure
    - name: make
      run: make
    - name: install
      run: sudo make install
    - name: info
      run: rsync --version
    - name: check
      run: sudo make check
    - name: ssl file list
      run: rsync-ssl --no-motd download.samba.org::rsyncftp/ || true

  cygwin-build:
    runs-on: windows-latest
    if: (github.event_name == 'schedule' || contains(github.event.head_commit.message, '[buildall]'))
    steps:
    - uses: actions/checkout@v2
    - uses: crazy-max/ghaction-chocolatey@v1.2.2
      with:
        args: install -y --no-progress cygwin cyg-get
    - name: prep
      run: |
        cyg-get make autoconf automake gcc-core libssl-devel libzstd-devel liblz4-devel
        echo "::add-path::C:/tools/cygwin/bin"
    - name: configure
      run: bash -c './configure --disable-md2man --disable-xxhash'
    - name: make
      run: bash -c 'make'
    - name: install
      run: bash -c 'make install'
    - name: info
      run: bash -c '/usr/local/bin/rsync --version'
    - name: check
      run: bash -c 'make check'
    - name: ssl file list
      run: bash -c 'PATH="/usr/local/bin:$PATH" rsync-ssl --no-motd download.samba.org::rsyncftp/ || true'