Skip to content

Commit

Permalink
👷 Merge qemu and main ci file
Browse files Browse the repository at this point in the history
  • Loading branch information
OlivierLDff committed Apr 7, 2021
1 parent 10c030d commit 5561ec9
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 50 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,49 @@ jobs:
-
name: ✅ Run Tests
run: cd build && ctest --build-config "${{ matrix.build_type }}" --progress --verbose

qemu:
runs-on: ubuntu-latest
strategy:
matrix:
docker_build_sha: ['29c05d13']
build_arch: [arm64, ppc64le, s390x]
build_type: ['Release', 'Debug']
steps:
-
name: Checkout
uses: actions/checkout@v2
-
name: 💎 Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v1
with:
image: tonistiigi/binfmt:latest
platforms: all
-
name: 🔧 Prepare
id: prep
run: |
# Set output parameters.
export DOCKER_TAG="reivilo1234/cxx-cmake:${{ matrix.docker_build_sha }}-${{ matrix.build_arch }}"
echo ::set-output name=tags::${DOCKER_TAG}
-
name: 🔧 Configure Endn
run: |
cmake -E make_directory build
docker run --rm -v $(pwd):/src/ ${{ steps.prep.outputs.tags }} \
cmake \
-DENDN_ENABLE_TESTS=ON \
-DCMAKE_BUILD_TYPE="${{ matrix.build_type }}" \
-B /src/build/ -S /src
-
name: 🔨 Build Tests
run: |
docker run --rm -v $(pwd):/src/ ${{ steps.prep.outputs.tags }} \
cmake --build /src/build --target "EndnTests" --config "${{ matrix.build_type }}" -j
-
name: ✅ Run Tests
run: |
docker run --rm -v $(pwd):/src/ ${{ steps.prep.outputs.tags }} \
/bin/bash -c "cd /src/build && ctest --build-config "${{ matrix.build_type }}" --progress --verbose"
50 changes: 0 additions & 50 deletions .github/workflows/qemu.yml

This file was deleted.

0 comments on commit 5561ec9

Please sign in to comment.