generated from qualcomm/qualcomm-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathqcom-container-build-and-upload.yml
More file actions
59 lines (48 loc) · 1.68 KB
/
qcom-container-build-and-upload.yml
File metadata and controls
59 lines (48 loc) · 1.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Container Build And Upload
description: |
Builds and uploads to GHCR (GitHub Container Registry) the container used to build the Qualcomm debian packages.
This workflow will assumes the build architecture is amd64 (x86_64) since the github's 'ubuntu-latest' runs-on tag
is used. Using docker's buildx, the Dockerfile in this repo's docker/ folder will be built for amd64 and cross-compiled
for arm64.
on:
schedule:
# Runs at 00:00 UTC every Monday
- cron: '0 0 * * 1'
pull_request_target:
branches:
- main
paths:
- '.github/workflows/qcom-container-build-and-upload.yml'
- '.github/actions/build_container/action.yml'
- 'Dockerfiles/**'
push:
branches:
- main
paths:
- '.github/workflows/qcom-container-build-and-upload.yml'
- '.github/actions/build_container/action.yml'
- 'Dockerfiles/**'
workflow_dispatch:
permissions:
contents: read
env:
QCOM_ORG_NAME: "qualcomm-linux"
IMAGE_NAME: "pkg-builder"
jobs:
# Build the arm64 natively using a self-hosted runner on an arm64 host
# Cross compiling the image using buildx on an x86_64 host was tried but failed due to
# issues with qemu and multiarch support in docker buildx.
build-image-arm64:
runs-on: ubuntu-24.04-arm
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{github.head_ref}}
- name: Build Images
uses: ./.github/actions/build_container
with:
arch: arm64
push-to-ghcr: ${{ github.event_name != 'pull_request_target' }}
token: ${{ secrets.DEB_PKG_BOT_CI_TOKEN }}
username: ${{ vars.DEB_PKG_BOT_CI_USERNAME }}