-
Notifications
You must be signed in to change notification settings - Fork 13
122 lines (122 loc) · 3.3 KB
/
build.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
name: Build
on:
push:
branches-ignore:
- netbsd-libhfs
pull_request:
env:
LOCAL_CFLAGS: -Werror
LIBHFS_CFLAGS: -Werror
jobs:
build-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libfuse-dev
- name: Build
run: make
build-macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
brew update
brew install --cask macfuse
- name: Build
run: make
build-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Add MinGW to PATH
run: echo "C:\msys64\mingw32\bin" >> $GITHUB_PATH
shell: bash
- name: Build
run: make
shell: bash
env:
CC: gcc
build-freebsd:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Build in default configuration
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
architecture: x86-64
version: '13.2'
run: |
sudo pkg update
sudo pkg install -y gmake fusefs-libs
gmake
- name: Build with ports tree configuration
uses: cross-platform-actions/[email protected]
with:
operating_system: freebsd
architecture: x86-64
version: '13.2'
run: |
sudo pkg install -y gmake fusefs-libs libublio utf8proc
gmake clean
gmake WITH_UBLIO=system WITH_UTF8PROC=system config all
build-openbsd:
runs-on: macos-12
steps:
- uses: actions/checkout@v2
- name: Build
uses: cross-platform-actions/[email protected]
with:
operating_system: openbsd
architecture: x86-64
version: '7.3'
run: |
sudo pkg_add gmake
gmake
build-netbsd:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
uses: cross-platform-actions/[email protected]
with:
operating_system: netbsd
architecture: x86-64
version: '9.3'
run: |
sudo pkgin update
sudo pkgin -y install gmake fuse
gmake
conformance-checks:
runs-on: ubuntu-latest
strategy:
matrix:
cc: [clang, gcc]
env:
CC: ${{ matrix.cc }}
defaults:
run:
shell: sh
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install -y libfuse-dev libutf8proc-dev
- name: Build
run: make all clean
- name: Build with conformance flags
env:
LOCAL_CFLAGS: -std=c11 -D_POSIX_C_SOURCE=200809L -Werror
LIBHFS_CFLAGS: -std=c11 -D_POSIX_C_SOURCE=200809L -Werror
run: make all clean
- name: Build with system utf8proc
run: make all clean WITH_UTF8PROC=system
- name: Build without optional dependencies
run: make all clean WITH_UBLIO=none WITH_UTF8PROC=none
- name: Build with compatibility fallbacks
run: make all clean HAVE_BEXXTOH_ENDIAN_H=0 HAVE_VSYSLOG=0 HAVE_PREAD=0