Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

feat: Add support for dlib-bin build on arm64 #138

feat: Add support for dlib-bin build on arm64

feat: Add support for dlib-bin build on arm64 #138

Workflow file for this run

name: test
on:
push:
branches:
- master
paths-ignore:
- "*.md"
- "LICENSE"
- ".github/**"
- "build-stage/**"
pull_request:
paths-ignore:
- "*.md"
- "LICENSE"
- ".github/**"
- "build-stage/**"
workflow_dispatch:
inputs:
start_test:
description: '构建测试镜像'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create Test User and test files
run: |
sudo groupadd -g 1024 mdc
sudo useradd -u 1024 mdc -g mdc
mkdir test
dd if=/dev/zero of="./test/MIFD-046.mp4" bs=250MB count=1
dd if=/dev/zero of="./test/SVDVD-471.mp4.mp4" bs=250MB count=1
sudo chown -R 99:100 test
ls -al test
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Build the test image
run: |
docker buildx create \
--name testbuilder \
--driver docker-container \
--bootstrap \
--use
docker buildx build \
--platform=linux/amd64,linux/arm64 \
--build-arg BUILD_DATE=$(date +"%Y-%m-%d") \
-t vergilgao/mdc:test \
.
- name: Run the Test
if: success()
run: |
docker run \
--rm \
--name=mdc_test \
-e UID=1024 \
-e GID=1024 \
-v ${PWD}/config:/config \
-v ${PWD}/test:/data \
vergilgao/mdc:test || true
docker run \
--rm \
--name=mdc_test \
-e UID=1024 \
-e GID=1024 \
-v ${PWD}/config:/config \
-v ${PWD}/test:/data \
vergilgao/mdc:test
find . -name MIFD-046.mp4
find . -name SVDVD-471.mp4
ls -al test