-
Notifications
You must be signed in to change notification settings - Fork 203
135 lines (118 loc) · 4.88 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
123
124
125
126
127
128
129
130
131
132
133
134
on:
push:
pull_request:
workflow_dispatch:
jobs:
Linux-and-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- run: sudo apt install -y cmake
- run: sudo apt install -y nfs-kernel-server
- run: sudo apt install -y nfs-common
- run: sudo apt install -y valgrind
- run: mkdir build
- run: cmake -D ENABLE_TESTS=yes -B build
- run: make --directory build
- run: sudo make --directory build install
- run: sudo bash -c "cd build/tests;./test_0100_ls_basic.sh"
- run: sudo bash -c "cd build/tests;./test_0102_ls_discover_shares.sh"
- run: sudo bash -c "cd build/tests;./test_0200_stat.sh"
- run: sudo bash -c "cd build/tests;./test_0201_stat_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0203_stat_symlink.sh"
- run: sudo bash -c "cd build/tests;./test_0210_fstat.sh"
- run: sudo bash -c "cd build/tests;./test_0211_fstat_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0220_open_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0223_open_O_TRUNC.sh"
- run: sudo bash -c "cd build/tests;./test_0224_open_O_APPEND.sh"
- run: sudo bash -c "cd build/tests;./test_0225_open_O_CREAT.sh"
- run: sudo bash -c "cd build/tests;./test_0230_creat_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0240_link.sh"
- run: sudo bash -c "cd build/tests;./test_0250_rename.sh"
- run: sudo bash -c "cd build/tests;./test_0260_symlink_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0270_unlink.sh"
- run: sudo bash -c "cd build/tests;./test_0280_mkdir_rmdir.sh"
- run: sudo bash -c "cd build/tests;./test_0290_read.sh"
- run: sudo bash -c "cd build/tests;./test_0300_write.sh"
- run: sudo bash -c "cd build/tests;./test_0310_mknod.sh"
- run: sudo bash -c "cd build/tests;./test_0320_lstat.sh"
- run: sudo bash -c "cd build/tests;./test_0321_lstat_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0330_ftruncate.sh"
- run: sudo bash -c "cd build/tests;./test_0340_truncate.sh"
- run: sudo bash -c "cd build/tests;./test_0341_truncate_paths.sh"
- run: sudo bash -c "cd build/tests;./test_0350_lseek.sh"
- run: sudo bash -c "cd build/tests;./test_0360_statvfs.sh"
- run: sudo bash -c "cd build/tests;./test_0370_chmod.sh"
- run: sudo bash -c "cd build/tests;./test_0380_lchmod.sh"
- run: sudo bash -c "cd build/tests;./test_0390_fchmod.sh"
- run: sudo bash -c "cd build/tests;./test_0400_chown.sh"
- run: sudo bash -c "cd build/tests;./test_0410_lchown.sh"
- run: sudo bash -c "cd build/tests;./test_0420_fchown.sh"
- run: sudo bash -c "cd build/tests;./test_0450_utimes.sh"
- run: sudo bash -c "cd build/tests;./test_0460_opendir.sh"
- run: sudo bash -c "cd build/tests;./test_1000_mount_paths.sh"
- run: sudo bash -c "cd build/tests;./test_1010_chdir_paths.sh"
Linux-Musl-QEMU:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform:
- i386
- s390x # Test big-endian
- arm32v6
- arm32v7
steps:
- uses: actions/checkout@main
- name: Get the qemu container
run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
- name: ${{ matrix.platform }}
run: docker run --rm --interactive --mount type=bind,source=$(pwd),target=/host ${{ matrix.platform }}/alpine sh -c "apk add cmake make gcc libc-dev git; cp -r /host from-host; cd from-host; mkdir build; cmake -B build; make --directory build install"
macOS:
runs-on: macos-latest
steps:
- uses: actions/checkout@main
- run: brew install cmake
- run: mkdir build
- run: cmake -B build
- run: make --directory build install
build-windows:
name: Windows build
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Cmake configure
run: |
cmake -G "Visual Studio 17 2022" .
- name: Build (MSVC)
run: |
cmake --build .
Cygwin:
runs-on: windows-latest
steps:
- name: Set up Cygwin
uses: cygwin/cygwin-install-action@master
with:
packages: make gcc-g++ bash cmake
- uses: actions/checkout@main
- shell: C:\cygwin\bin\bash.exe --login --norc -eo pipefail -o igncr '{0}'
run: |
cd $GITHUB_WORKSPACE
mkdir build
cmake -B build
make --directory build install
build-ps2-ee:
name: PS2 EE build
runs-on: ubuntu-latest
container: ps2dev/ps2dev:latest
steps:
- name: Install dependencies
run: |
apk add build-base git zip gawk python3 py3-pip bash
- name: git checkout
uses: actions/checkout@v3
- name: make -f Makefile.PS2_EE
run: |
cd ps2_ee
make -f Makefile.PS2_EE clean
make -f Makefile.PS2_EE