Skip to content

Commit 1b4b152

Browse files
committed
Compile the host tools in the different systems
1 parent 5ddec7e commit 1b4b152

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed

.github/workflows/host_tools.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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+
]
26+
fail-fast: false
27+
defaults:
28+
run:
29+
shell: ${{ matrix.os[2] }} {0}
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
34+
- name: Install Ubuntu packages
35+
if: matrix.os[0] == 'ubuntu-latest'
36+
run: |
37+
sudo apt-get update
38+
sudo apt-get -y install libusb-1.0-0-dev gcc
39+
40+
- name: Install macOS packages
41+
if: startsWith(matrix.os[0], 'macos')
42+
run: |
43+
brew update
44+
brew install libusb gcc
45+
46+
- name: Compile tools
47+
run: |
48+
make --quiet -j $PROC_NR -C usbhostfs_pc

0 commit comments

Comments
 (0)