-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This image is needed to build a new version of maia-httpd that depends on pm-remez. Signed-off-by: Daniel Estévez <[email protected]>
- Loading branch information
1 parent
f2357dc
commit 32d5cce
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and publish cross-maia-sdr Docker image | ||
|
||
on: | ||
push: | ||
branches: ['test-cross-maia-sdr'] | ||
tags: | ||
- cross-maia-sdr-** | ||
|
||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: cross-armv7-unknown-linux-gnueabihf-maia-sdr | ||
|
||
jobs: | ||
build-and-push-image: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
packages: write | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Log in to the Container registry | ||
uses: docker/login-action@v3 | ||
with: | ||
registry: ${{ env.REGISTRY }} | ||
username: ${{ github.actor }} | ||
password: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Extract metadata (tags, labels) for Docker | ||
id: meta | ||
uses: docker/metadata-action@v5 | ||
with: | ||
images: ${{ env.REGISTRY }}/${{ github.repository_owner }}/${{ env.IMAGE_NAME }} | ||
tags: | | ||
type=match,pattern=cross-maia-sdr-(\d+),group=1 | ||
type=ref,event=branch | ||
- name: Build and push Docker image | ||
uses: docker/build-push-action@v5 | ||
with: | ||
context: ${{ env.IMAGE_NAME }} | ||
push: true | ||
tags: ${{ steps.meta.outputs.tags }} | ||
labels: ${{ steps.meta.outputs.labels }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
FROM ghcr.io/cross-rs/armv7-unknown-linux-gnueabihf:0.2.5 | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# Set up env variables to cross-compile openblas and install packages required | ||
# to build pm-remez | ||
|
||
ENV OPENBLAS_TARGET=armv7 | ||
ENV OPENBLAS_HOSTCC=gcc | ||
ENV OPENBLAS_CC=arm-linux-gnueabihf-gcc | ||
ENV OPENBLAS_FC=arm-linux-gnueabihf-gfortran | ||
|
||
RUN apt-get update && \ | ||
apt-get -y install pkg-config libssl-dev gfortran-arm-linux-gnueabihf && \ | ||
rm -rf /var/lib/apt/lists/* |