Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Jun 20, 2023
1 parent 51c7f3f commit 86de011
Showing 1 changed file with 40 additions and 2 deletions.
42 changes: 40 additions & 2 deletions .github/workflows/c.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:

strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, windows-latest]

steps:
- uses: actions/checkout@v3
Expand All @@ -51,12 +51,43 @@ jobs:
build/node/pv_recorder.node
retention-days: 3

build-self-hosted-macos:
runs-on: pv-ios

strategy:
matrix:
arch: [arm64, x86_64]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive

- name: Create build directory
run: cmake -B ./build-${{ matrix.arch }} -DCMAKE_OSX_ARCHITECTURES={osx_arch}

- name: Build
run: cmake --build ./build-${{ matrix.arch }}

- name: Run get audio devices
run: ./demo --show_audio_devices
working-directory: build-${{ matrix.arch }}

- name: Upload build artifacts
uses: actions/upload-artifact@v3
with:
name: macos-${{ matrix.arch }}
path: |
build-${{ matrix.arch }}/libpv_recorder.dylib
build-${{ matrix.arch }}/node/pv_recorder.node
retention-days: 3

build-self-hosted:
runs-on: ${{ matrix.machine }}

strategy:
matrix:
machine: [rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
machine: [rpi4-64, jetson]

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -85,6 +116,13 @@ jobs:
collect-artifacts:
runs-on: ubuntu-latest
needs: [build-github-hosted, build-self-hosted]
# strategy:
# matrix:
# machine: [ubuntu-latest, windows-latest, macos-latest, rpi2, rpi3-32, rpi3-64, rpi4-32, rpi4-64, jetson, beaglebone]
# include:
# - machine: ubuntu-latest
# output-dir: lib/linux/x86_64
# node-output-dir: lib/node/linux/x86_64

steps:
- name: Download artifacts
Expand Down

0 comments on commit 86de011

Please sign in to comment.