-
Notifications
You must be signed in to change notification settings - Fork 144
130 lines (105 loc) · 3.24 KB
/
test.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
---
name: Test
on:
push:
branches:
- master
pull_request: {}
jobs:
Linux:
strategy:
fail-fast: false
matrix:
volume:
- /tmp
- .
- relative-path
- /
asroot:
- name: ''
sudo: ''
- name: ' as root'
sudo: 'sudo '
name: Linux ${{ matrix.volume }}${{ matrix.asroot.name }}
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install -y libparted-dev libudev-dev
- run: make all extra
- if: matrix.volume == 'relative-path'
run: mkdir relative-path
- if: matrix.volume == '/'
run: sudo chmod a+w /
- run: ./f3write -V
- run: ./f3write --help
- run: ${{ matrix.asroot.sudo }}./f3write -s 2 -e 4 -w 50000 ${{ matrix.volume }}
- run: stat ${{ matrix.volume }}/2.h2w
- run: stat ${{ matrix.volume }}/3.h2w
- run: stat ${{ matrix.volume }}/4.h2w
- run: ./f3read -V
- run: ./f3read --help
- run: ${{ matrix.asroot.sudo }}./f3read -s 2 -e 4 -r 50000 ${{ matrix.volume }}
MacOS:
strategy:
fail-fast: false
matrix:
volume:
- /tmp
- .
- relative-path
# MacOS denies `sudo chmod a+w /`
#- /
asroot:
- name: ''
sudo: ''
- name: ' as root'
sudo: 'sudo '
name: MacOS ${{ matrix.volume }}${{ matrix.asroot.name }}
runs-on: macos-12
steps:
- uses: actions/checkout@v3
- run: brew install argp-standalone
- run: make
- if: matrix.volume == 'relative-path'
run: mkdir relative-path
- run: ./f3write -V
- run: ./f3write --help
- run: ${{ matrix.asroot.sudo }}./f3write -s 2 -e 4 -w 50000 ${{ matrix.volume }}
- run: stat ${{ matrix.volume }}/2.h2w
- run: stat ${{ matrix.volume }}/3.h2w
- run: stat ${{ matrix.volume }}/4.h2w
- run: ./f3read -V
- run: ./f3read --help
- run: ${{ matrix.asroot.sudo }}./f3read -s 2 -e 4 -r 50000 ${{ matrix.volume }}
Cygwin:
strategy:
fail-fast: false
matrix:
volume:
- cygwin: /cygdrive/c
windows: 'C:'
- cygwin: .
windows: .
- cygwin: relative-path
windows: relative-path
- cygwin: /
windows: 'C:\cygwin'
name: Cygwin ${{ matrix.volume.cygwin }}
runs-on: windows-2022
steps:
- uses: actions/checkout@v3
- uses: cygwin/cygwin-install-action@v2
with:
packages: gcc-core libargp-devel make
- run: "$Env:LDFLAGS = '-Wl,--stack,4000000'; make"
- if: matrix.volume.windows == 'relative-path'
run: New-Item -ItemType Directory -Path relative-path
- run: '& .\f3write.exe -V'
- run: '& .\f3write.exe --help'
- run: '& .\f3write.exe -s 2 -e 4 -w 50000 ${{ matrix.volume.cygwin }}'
- run: 'Get-Item ${{ matrix.volume.windows }}\2.h2w'
- run: 'Get-Item ${{ matrix.volume.windows }}\3.h2w'
- run: 'Get-Item ${{ matrix.volume.windows }}\4.h2w'
- run: '& .\f3read.exe -V'
- run: '& .\f3read.exe --help'
- run: '& .\f3read.exe -s 2 -e 4 -r 50000 ${{ matrix.volume.cygwin }}'