File: QEMU.yml

package info (click to toggle)
xrootd 5.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 25,956 kB
  • sloc: cpp: 244,425; sh: 2,691; python: 1,980; ansic: 1,027; perl: 814; makefile: 272
file content (59 lines) | stat: -rw-r--r-- 1,198 bytes parent folder | download
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: QEMU

permissions:
  contents: read

on:
  workflow_dispatch:
    inputs:
      os:
        description: 'OS'
        required: true
        default: 'fedora'
        type: choice
        options:
          - alma8
          - alma9
          - debian
          - fedora
          - ubuntu
      arch:
        description: 'Architecture'
        required: true
        default: 's390x'
        type: choice
        options:
          - 386
          - amd64
          - arm
          - arm64
          - ppc64le
          - s390x

concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.os }}-${{ inputs.arch }}
  cancel-in-progress: true

defaults:
  run:
    shell: bash

env:
  DOCKER: podman

jobs:
  buildx:
    name: QEMU (${{ inputs.os }}-${{ inputs.arch }})
    runs-on: ubuntu-latest

    steps:
    - name: Clone repository
      uses: actions/checkout@v4
      with:
        fetch-depth: 0

    - name: Setup QEMU for cross-building images
      run: docker run --rm --privileged multiarch/qemu-user-static --reset -p yes

    - name: Cross-build container with docker/podman buildx
      run: cd docker && ./xrd-docker buildx ${{ inputs.os }} ${{ inputs.arch }}