File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Host Tools
2+
3+ on :
4+ push :
5+ paths :
6+ - ' usbhostfs_pc/**'
7+ - ' .github/workflows/host_tools.yml'
8+ pull_request :
9+ paths :
10+ - ' usbhostfs_pc/**'
11+ - ' .github/workflows/host_tools.yml'
12+ repository_dispatch :
13+ types : [run_build]
14+ workflow_dispatch : {}
15+
16+ jobs :
17+ build :
18+ runs-on : ${{ matrix.os[0] }}
19+ strategy :
20+ matrix :
21+ os : [
22+ [macos-latest, arm64, bash],
23+ [macos-13, x86_64, bash],
24+ [ubuntu-latest, x86_64, bash],
25+ [windows-latest, x86_64, msys2]
26+ ]
27+ fail-fast : false
28+ defaults :
29+ run :
30+ shell : ${{ matrix.os[2] }} {0}
31+
32+ steps :
33+ - uses : actions/checkout@v4
34+
35+ - name : Install Ubuntu packages
36+ if : matrix.os[0] == 'ubuntu-latest'
37+ run : |
38+ sudo apt-get update
39+ sudo apt-get -y install libusb-1.0-0-dev gcc
40+
41+ - name : Install macOS packages
42+ if : startsWith(matrix.os[0], 'macos')
43+ run : |
44+ brew update
45+ brew install libusb gcc
46+
47+ - name : Install MSYS2 packages
48+ if : matrix.os[0] == 'windows-latest'
49+ uses : msys2/setup-msys2@v2
50+ with :
51+ msystem : MINGW32
52+ install : |
53+ base-devel git make
54+ mingw-w64-i686-libusb1
55+ mingw-w64-i686-gcc
56+ update : true
57+
58+ - name : Compile tools
59+ run : |
60+ make --quiet -j $PROC_NR -C usbhostfs_pc
You can’t perform that action at this time.
0 commit comments