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 0;
|
||||||
exit 1 || { echo "---> Hyperion compilation failed! Abort"; exit 5; }
|
exit 1 || { echo "---> Hyperion compilation failed! Abort"; exit 5; }
|
||||||
elif [[ "$CI_NAME" == 'linux' ]]; then
|
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
|
# set GitHub Container Registry url
|
||||||
REGISTRY_URL="ghcr.io/hyperion-project/${DOCKER_IMAGE}"
|
REGISTRY_URL="ghcr.io/hyperion-project/${DOCKER_IMAGE}"
|
||||||
# take ownership of deploy dir
|
# take ownership of deploy dir
|
||||||
mkdir ${CI_BUILD_DIR}/deploy
|
mkdir ${CI_BUILD_DIR}/deploy
|
||||||
|
|
||||||
# run docker
|
# run docker
|
||||||
docker run --rm \
|
docker run --rm --platform=${ARCHITECTURE} \
|
||||||
-v "${CI_BUILD_DIR}/deploy:/deploy" \
|
-v "${CI_BUILD_DIR}/deploy:/deploy" \
|
||||||
-v "${CI_BUILD_DIR}:/source:ro" \
|
-v "${CI_BUILD_DIR}:/source:ro" \
|
||||||
$REGISTRY_URL:$DOCKER_TAG \
|
$REGISTRY_URL:$DOCKER_TAG \
|
||||||
|
36
.github/workflows/pull-request.yml
vendored
36
.github/workflows/pull-request.yml
vendored
@ -16,24 +16,20 @@ jobs:
|
|||||||
######################
|
######################
|
||||||
|
|
||||||
Linux:
|
Linux:
|
||||||
name: 🐧 ${{ matrix.dockerName }}
|
name: 🐧 ${{ matrix.os.description }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
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:
|
include:
|
||||||
- dockerImage: x86_64
|
- distribution: debian
|
||||||
dockerName: Debian Buster (x86_64)
|
- codename: buster
|
||||||
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
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: ⬇ Checkout
|
- name: ⬇ Checkout
|
||||||
@ -49,12 +45,16 @@ jobs:
|
|||||||
echo -n "+PR${{ github.event.pull_request.number }}" >> .version
|
echo -n "+PR${{ github.event.pull_request.number }}" >> .version
|
||||||
echo '::endgroup::'
|
echo '::endgroup::'
|
||||||
|
|
||||||
|
- name: 🛠️ Setup QEMU
|
||||||
|
uses: docker/setup-qemu-action@v3
|
||||||
|
|
||||||
- name: 👷 Build
|
- name: 👷 Build
|
||||||
env:
|
env:
|
||||||
DOCKER_IMAGE: ${{ matrix.dockerImage }}
|
DOCKER_IMAGE: ${{ matrix.distribution }}
|
||||||
DOCKER_TAG: buster
|
DOCKER_TAG: ${{ matrix.codename }}
|
||||||
DOCKER_NAME: ${{ matrix.dockerName }}
|
DOCKER_NAME: ${{ matrix.os.description }}
|
||||||
PLATFORM: ${{ matrix.platform }}
|
PLATFORM: ${{ matrix.os.platform }}
|
||||||
|
ARCHITECTURE: ${{ matrix.os.architecture }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
echo '::group::Build packages'
|
echo '::group::Build packages'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user