Skip to content

Commit

Permalink
Try docker run action
Browse files Browse the repository at this point in the history
  • Loading branch information
igorauad committed Nov 3, 2023
1 parent 98668bf commit 0e26e38
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,25 @@ jobs:
matrix:
container: ["3.10.7.0-ubuntu-jammy"]
platform: ["linux/arm64", "linux/arm/v7"]
container:
image: igorfreire/gnuradio-oot-dev:${{ matrix.container }}
options: --platform ${{ matrix.platform }}
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- uses: actions/checkout@v2
with:
submodules: "recursive"
- name: Install dependencies
if: ${{ contains(matrix.container, 'ubuntu') }}
run: apt update && apt install -y libsndfile1-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
- name: Build
run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
- name: Test
run: cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}} -VV
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64,arm
- name: Build and test inside Docker container
uses: addnab/docker-run-action@v3
with:
image: igorfreire/gnuradio-oot-dev:${{ matrix.container }}
options: |
--platform --platform ${{ matrix.platform }}
run: |
apt update && apt install -y libsndfile1-dev
cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}}
cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}}
cd ${{github.workspace}}/build && ctest -C ${{env.BUILD_TYPE}} -VV
macos:
runs-on: macos-latest
steps:
Expand Down

0 comments on commit 0e26e38

Please sign in to comment.