mirror of
https://github.com/Lime3DS/Lime3DS.git
synced 2026-06-02 04:55:28 -06:00
ci: Build azahar-room Docker image for ARM64
This commit is contained in:
parent
725544f3b4
commit
383a28795e
@ -14,7 +14,7 @@ echo "Tag name is: $TAG_NAME"
|
|||||||
|
|
||||||
docker build --no-cache -f docker/azahar-room/Dockerfile -t azahar-room:$TAG_NAME .
|
docker build --no-cache -f docker/azahar-room/Dockerfile -t azahar-room:$TAG_NAME .
|
||||||
mkdir -p build
|
mkdir -p build
|
||||||
FILENAME="azahar-room-$TAG_NAME.dockerimage"
|
FILENAME="azahar-room-$TARGET-$TAG_NAME.dockerimage"
|
||||||
docker save azahar-room:$TAG_NAME > build/$FILENAME
|
docker save azahar-room:$TAG_NAME > build/$FILENAME
|
||||||
|
|
||||||
echo "DOCKER_IMAGE_PATH=artifacts/$FILENAME" >> $GITHUB_ENV
|
echo "DOCKER_IMAGE_PATH=artifacts/$FILENAME" >> $GITHUB_ENV
|
||||||
|
|||||||
19
.github/workflows/build.yml
vendored
19
.github/workflows/build.yml
vendored
@ -396,15 +396,24 @@ jobs:
|
|||||||
sbom-path: src/android/app/artifacts/android-${{ matrix.target }}.spdx.json
|
sbom-path: src/android/app/artifacts/android-${{ matrix.target }}.spdx.json
|
||||||
|
|
||||||
docker:
|
docker:
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
include:
|
||||||
|
- target: x86_64
|
||||||
|
os: ubuntu-24.04
|
||||||
|
- target: arm64
|
||||||
|
os: ubuntu-24.04-arm
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
container:
|
container:
|
||||||
image: docker:dind
|
# Can't use docker:dind for ARM64 because it's Alpine-based, see https://github.com/actions/upload-artifact/issues/739
|
||||||
|
image: earthbuild/dind:ubuntu-24.04-docker-28.5.2-1
|
||||||
|
env:
|
||||||
|
TARGET: ${{ matrix.target }}
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
with:
|
with:
|
||||||
submodules: recursive
|
submodules: recursive
|
||||||
- name: Install tools
|
|
||||||
run: apk add bash
|
|
||||||
- name: Fix git ownership
|
- name: Fix git ownership
|
||||||
run: git config --global --add safe.directory .
|
run: git config --global --add safe.directory .
|
||||||
- name: Build Docker image
|
- name: Build Docker image
|
||||||
@ -424,7 +433,7 @@ jobs:
|
|||||||
- name: Upload
|
- name: Upload
|
||||||
uses: actions/upload-artifact@v7
|
uses: actions/upload-artifact@v7
|
||||||
with:
|
with:
|
||||||
name: docker
|
name: docker-${{ env.TARGET }}
|
||||||
path: artifacts/
|
path: artifacts/
|
||||||
- name: Attest artifacts
|
- name: Attest artifacts
|
||||||
if: ${{ github.ref_type == 'tag' }}
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user