mirror of
https://github.com/andreili/camera-streamer.git
synced 2025-08-23 19:34:07 +02:00
workflow: use arm runners for arm64 builds
This commit is contained in:
parent
50bb175ca4
commit
bef4755bbe
15
.github/workflows/build_release.yaml
vendored
15
.github/workflows/build_release.yaml
vendored
@ -3,16 +3,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.arch.runner }}
|
||||||
permissions:
|
permissions:
|
||||||
contents: write
|
contents: write
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
debian_version: [bullseye, bookworm]
|
debian_version: [bullseye, bookworm]
|
||||||
docker_arch: [amd64, arm/v7, arm64/v8]
|
arch:
|
||||||
|
- docker: amd64
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
- docker: arm/v7
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
- docker: arm64/v8
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
build_type: [generic, raspi]
|
build_type: [generic, raspi]
|
||||||
exclude:
|
exclude:
|
||||||
- docker_arch: amd64
|
- arch:
|
||||||
|
docker: amd64
|
||||||
build_type: raspi
|
build_type: raspi
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -50,7 +57,7 @@ jobs:
|
|||||||
.
|
.
|
||||||
env:
|
env:
|
||||||
DEBIAN_VERSION: ${{ matrix.debian_version }}
|
DEBIAN_VERSION: ${{ matrix.debian_version }}
|
||||||
DOCKER_ARCH: ${{ matrix.docker_arch }}
|
DOCKER_ARCH: ${{ matrix.arch.docker }}
|
||||||
BUILD_TYPE: ${{ matrix.build_type }}
|
BUILD_TYPE: ${{ matrix.build_type }}
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
- name: Create container
|
- name: Create container
|
||||||
|
22
.github/workflows/build_test.yaml
vendored
22
.github/workflows/build_test.yaml
vendored
@ -5,17 +5,29 @@ on:
|
|||||||
- 'RELEASE.md'
|
- 'RELEASE.md'
|
||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
schedule:
|
||||||
|
- cron: '0 15 * * 2' # Runs at 15:00 (3pm) UTC every Tuesday
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.arch.runner }}
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
debian_version: [bullseye, bookworm]
|
debian_version: [bullseye, bookworm]
|
||||||
docker_arch: [amd64, arm/v7, arm64/v8]
|
arch:
|
||||||
|
- docker: amd64
|
||||||
|
variant: amd64
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
- docker: arm/v7
|
||||||
|
variant: arm32v7
|
||||||
|
runner: ubuntu-24.04
|
||||||
|
- docker: arm64/v8
|
||||||
|
variant: arm64v8
|
||||||
|
runner: ubuntu-24.04-arm
|
||||||
build_type: [generic, raspi]
|
build_type: [generic, raspi]
|
||||||
exclude:
|
exclude:
|
||||||
- docker_arch: amd64
|
- arch:
|
||||||
|
docker: amd64
|
||||||
build_type: raspi
|
build_type: raspi
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
@ -40,7 +52,7 @@ jobs:
|
|||||||
.
|
.
|
||||||
env:
|
env:
|
||||||
DEBIAN_VERSION: ${{ matrix.debian_version }}
|
DEBIAN_VERSION: ${{ matrix.debian_version }}
|
||||||
DOCKER_ARCH: ${{ matrix.docker_arch }}
|
DOCKER_ARCH: ${{ matrix.arch.docker }}
|
||||||
BUILD_TYPE: ${{ matrix.build_type }}
|
BUILD_TYPE: ${{ matrix.build_type }}
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
- name: Create container
|
- name: Create container
|
||||||
@ -50,6 +62,6 @@ jobs:
|
|||||||
- name: 'Upload debian files'
|
- name: 'Upload debian files'
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ matrix.debian_version }}-${{ matrix.docker_arch }}-${{ matrix.build_type }}.zip
|
name: ${{ matrix.debian_version }}-${{ matrix.arch.variant }}-${{ matrix.build_type }}.zip
|
||||||
path: deb/
|
path: deb/
|
||||||
retention-days: 14
|
retention-days: 14
|
||||||
|
Loading…
x
Reference in New Issue
Block a user