From 0e26e3859127ed2c953d5daaa453a132afb4b319 Mon Sep 17 00:00:00 2001 From: Igor Freire Date: Fri, 3 Nov 2023 23:30:50 +0000 Subject: [PATCH] Try docker run action --- .github/workflows/test.yml | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 1ac9eca..fc745eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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: