mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2025-03-01 10:33:28 +00:00
build github releases with new docker files
This commit is contained in:
parent
62096d3ee6
commit
09048bf4f4
@ -45,14 +45,14 @@ elif [[ $CI_NAME == *"mingw64_nt"* || "$CI_NAME" == 'windows_nt' ]]; then
|
||||
exit 0;
|
||||
exit 1 || { echo "---> Hyperion compilation failed! Abort"; exit 5; }
|
||||
elif [[ "$CI_NAME" == 'linux' ]]; then
|
||||
echo "Compile Hyperion with DOCKER_IMAGE = ${DOCKER_IMAGE}, DOCKER_TAG = ${DOCKER_TAG} and friendly name DOCKER_NAME = ${DOCKER_NAME}"
|
||||
echo "Compile Hyperion with DOCKER_IMAGE = ${DOCKER_IMAGE}, DOCKER_TAG = ${DOCKER_TAG}, ARCHITECTURE = ${ARCHITECTURE} and friendly name DOCKER_NAME = ${DOCKER_NAME}"
|
||||
# set GitHub Container Registry url
|
||||
REGISTRY_URL="ghcr.io/hyperion-project/${DOCKER_IMAGE}"
|
||||
# take ownership of deploy dir
|
||||
mkdir ${CI_BUILD_DIR}/deploy
|
||||
|
||||
# run docker
|
||||
docker run --rm \
|
||||
docker run --rm --platform=${ARCHITECTURE} \
|
||||
-v "${CI_BUILD_DIR}/deploy:/deploy" \
|
||||
-v "${CI_BUILD_DIR}:/source:ro" \
|
||||
$REGISTRY_URL:$DOCKER_TAG \
|
||||
|
36
.github/workflows/pull-request.yml
vendored
36
.github/workflows/pull-request.yml
vendored
@ -16,24 +16,20 @@ jobs:
|
||||
######################
|
||||
|
||||
Linux:
|
||||
name: 🐧 ${{ matrix.dockerName }}
|
||||
name: 🐧 ${{ matrix.os.description }}
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
dockerImage: [ x86_64, armv6l, armv7l, aarch64 ]
|
||||
os: [
|
||||
{ description: Debian Buster (x86_64), platform: x11, architecture: linux/amd64 },
|
||||
{ description: Debian Buster (Raspberry Pi v1 & ZERO), platform: rpi, architecture: linux/arm/v7 },
|
||||
{ description: Debian Buster (Raspberry Pi 2 & 3), platform: rpi, architecture: linux/arm/v7 },
|
||||
{ description: Debian Buster (Generic AARCH64), platform: amlogic, architecture: linux/arm64 }
|
||||
]
|
||||
include:
|
||||
- dockerImage: x86_64
|
||||
dockerName: Debian Buster (x86_64)
|
||||
platform: x11
|
||||
- dockerImage: armv6l
|
||||
dockerName: Debian Buster (Raspberry Pi v1 & ZERO)
|
||||
platform: rpi
|
||||
- dockerImage: armv7l
|
||||
dockerName: Debian Buster (Raspberry Pi 2 & 3)
|
||||
platform: rpi
|
||||
- dockerImage: aarch64
|
||||
dockerName: Debian Buster (Generic AARCH64)
|
||||
platform: amlogic
|
||||
- distribution: debian
|
||||
- codename: buster
|
||||
|
||||
steps:
|
||||
- name: ⬇ Checkout
|
||||
@ -49,12 +45,16 @@ jobs:
|
||||
echo -n "+PR${{ github.event.pull_request.number }}" >> .version
|
||||
echo '::endgroup::'
|
||||
|
||||
- name: 🛠️ Setup QEMU
|
||||
uses: docker/setup-qemu-action@v3
|
||||
|
||||
- name: 👷 Build
|
||||
env:
|
||||
DOCKER_IMAGE: ${{ matrix.dockerImage }}
|
||||
DOCKER_TAG: buster
|
||||
DOCKER_NAME: ${{ matrix.dockerName }}
|
||||
PLATFORM: ${{ matrix.platform }}
|
||||
DOCKER_IMAGE: ${{ matrix.distribution }}
|
||||
DOCKER_TAG: ${{ matrix.codename }}
|
||||
DOCKER_NAME: ${{ matrix.os.description }}
|
||||
PLATFORM: ${{ matrix.os.platform }}
|
||||
ARCHITECTURE: ${{ matrix.os.architecture }}
|
||||
shell: bash
|
||||
run: |
|
||||
echo '::group::Build packages'
|
||||
|
Loading…
x
Reference in New Issue
Block a user