• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1name: macOS
2
3# Controls when the action will run. Triggers the workflow on push or pull request
4# events but only for the master branch
5on: [push, pull_request]
6
7# A workflow run is made up of one or more jobs that can run
8# sequentially or in parallel
9jobs:
10  # This workflow contains a single job called "build"
11  build:
12    runs-on: macos-latest
13
14    # Steps represent a sequence of tasks that will be executed as part of the job
15    steps:
16      # Checks-out your repository under $GITHUB_WORKSPACE, so your job
17      # can access it
18      - uses: actions/checkout@v3
19
20      - name: setup prerequisites
21        shell: bash
22        run: |
23          brew update
24          brew install autoconf automake libtool m4
25
26      - name: bootstrap
27        shell: bash
28        run: ./bootstrap.sh
29
30      - name: compile
31        shell: bash
32        run: .private/ci-build.sh --build-dir build
33
34      - name: Xcode
35        shell: bash
36        run: cd Xcode && xcodebuild -project libusb.xcodeproj
37