forked from 007/afpfs-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (58 loc) · 1.28 KB
/
ci.yml
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
name: Compile and Test
on:
push:
branches: [ "main" ]
paths-ignore:
- 'AUTHORS'
- 'BUGS'
- 'COPYING'
- 'ChangeLog'
- 'NEWS'
- 'README.md'
- 'TODO'
env:
APT_PACKAGES: |
autoconf \
automake \
libgcrypt-dev \
libfuse-dev \
libgmp-dev \
libreadline-dev \
libtool \
libtool-bin \
libncurses-dev
jobs:
build-ubuntu:
name: Ubuntu
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install --assume-yes --no-install-recommends ${{ env.APT_PACKAGES }}
- name: Bootstrap
run: ./bootstrap
- name: Configure
run: ./configure
- name: Compile
run: make -j $(nproc)
- name: Distribution check
run: make distcheck
build-macos:
name: macOS
runs-on: macos-13
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK: 1
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: brew install automake libgcrypt
- name: Bootstrap
run: ./bootstrap
- name: Configure
run: ./configure
- name: Compile
run: make -j $(nproc)