Skip to content

chore: Switch to distribution-gpg-keys on stable branches (#16) #87

chore: Switch to distribution-gpg-keys on stable branches (#16)

chore: Switch to distribution-gpg-keys on stable branches (#16) #87

Workflow file for this run

name: Build RPM
permissions:
contents: read
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
merge_group:
branches: ["main"]
jobs:
build:
strategy:
matrix:
releasever: [rawhide, 44, 43, 42]
arch: [x86_64, aarch64, i386]
fail-fast: false
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-22.04-arm' || 'ubuntu-latest' }}
container:
image: ghcr.io/ultramarine-linux/builder:um${{ matrix.releasever }}
options: --cap-add=SYS_ADMIN --privileged
steps:
- name: Checkout Ultramarine repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
repository: Ultramarine-Linux/packages
fetch-depth: 0
- name: Checkout Mock Configs
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
path: mock-configs
- name: Set up git repository
run: git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Include custom build template instead of package default
run: cp -v mock-configs/ultramarine*.tpl /etc/mock/templates/
- name: Build with Andaman
run: anda build ultramarine-mock-configs -c mock-configs/ultramarine-${{ matrix.releasever }}-${{ matrix.arch }}.cfg
- name: Generating artifact name
id: art
run: |
NAME=ultramarine-mock-configs-${{ matrix.arch }}-${{ matrix.releasever }}
x=${NAME//\//@}
echo "name=$x" >> $GITHUB_OUTPUT
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: ${{ steps.art.outputs.name }}
compression-level: 0 # The RPMs are already compressed :p
path: |
anda-build/rpm/rpms/*
anda-build/rpm/srpm/*