forked from 007/afpfs-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
89 lines (83 loc) · 1.91 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
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)
build-freebsd:
name: "FreeBSD"
runs-on: ubuntu-22.04
permissions:
contents: read
steps:
- name: "Checkout repository"
uses: actions/checkout@v4
- name: "Build on VM"
uses: vmactions/[email protected]
with:
copyback: false
prepare: |
pkg install -y \
autoconf \
automake \
fusefs-libs \
gmp \
libgcrypt \
libtool
run: |
bash
./bootstrap
CFLAGS="-I/usr/local/include -L/usr/local/lib" ./configure
make -j $(nproc)