Skip to content

Commit

Permalink
add docker armv7
Browse files Browse the repository at this point in the history
  • Loading branch information
mpromonet committed Sep 9, 2024
1 parent 6ae3c27 commit 7986ac1
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/cpp-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,26 @@ jobs:
include:
- os: windows-latest
dockerfile: Dockerfile.windows
label: windows
arch: windows
- os: ubuntu-latest
dockerfile: Dockerfile.arm64
label: arm64
arch: arm64
- os: ubuntu-latest
dockerfile: Dockerfile.rpi
label: armv6l
arch: armv6l
crosscompiler: https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2010.2.0/Raspberry%20Pi%201%2C%20Zero/cross-gcc-10.2.0-pi_0-1.tar.gz
- os: ubuntu-latest
dockerfile: Dockerfile.rpi
arch: armv7l
crosscompiler: https://sourceforge.net/projects/raspberry-pi-cross-compilers/files/Raspberry%20Pi%20GCC%20Cross-Compiler%20Toolchains/Buster/GCC%2010.2.0/Raspberry%20Pi%202%2C%203/cross-gcc-10.2.0-pi_2-3.tar.gz
- os: ubuntu-latest
dockerfile: Dockerfile
label: amd64
arch: amd64

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Build an image from Dockerfile
run: docker build -t docker.io/${{ github.repository }}:${{ matrix.label }} -f ${{ matrix.dockerfile }} .
run: docker build -t docker.io/${{ github.repository }}:${{ matrix.arch }} -f ${{ matrix.dockerfile }} --build-arg CROSSCOMPILE=${{ matrix.crosscompiler }} --build-arg ARCH=${{ matrix.label }} .

0 comments on commit 7986ac1

Please sign in to comment.