mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-18 17:40:38 +00:00
c4c14fe745
* trying to fix camel * add evolution-data-server (provides camel-1.2) * fix * fix update.sh * fix update.sh * git add * Add build.yml * Update build.yml
46 lines
1.7 KiB
YAML
46 lines
1.7 KiB
YAML
name: Build Packages
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
packages:
|
|
description: "Packages to Build (like this: ['pkg-a', 'pkg-b', ...])"
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
strategy:
|
|
matrix:
|
|
pkg: ${{ fromJson(inputs.packages) }}
|
|
version: ["ad37"]
|
|
arch: ["x86_64", "aarch64"]
|
|
fail-fast: false
|
|
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
|
|
container:
|
|
image: registry.fedoraproject.org/fedora:37
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- name: Install repositories
|
|
run: |
|
|
sudo dnf install -y dnf-plugins-core
|
|
sudo dnf config-manager --add-repo https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/ad37.repo
|
|
sudo dnf install -y anda-mock-configs subatomic-cli anda mock rpm-build mock-scm
|
|
|
|
- uses: terrapkg/anda-build@main
|
|
if: ${{ !fromJson(needs.manifest.outputs.is_empty) }}
|
|
with:
|
|
name: "${{ matrix.pkg }}pkg"
|
|
mockConfig: anda-37-${{ matrix.arch }}
|
|
extraArgs: -D "sccache_bucket ${{secrets.SCCACHE_BUCKET}}" -D "sccache_endpoint ${{secrets.SCCACHE_ENDPOINT}}" -D "sccache_secret ${{secrets.SCCACHE_SECRET}}" -D "sccache_accesskey ${{secrets.SCCACHE_ACCESSKEY}}"
|
|
andaRepo: https://github.com/andaman-common-pkgs/subatomic-repos/raw/main/ad37.repo
|
|
|
|
- name: Install Subatomic client
|
|
run: sudo dnf install -y subatomic-cli
|
|
|
|
- name: Upload packages to subatomic
|
|
if: ${{ !fromJson(needs.manifest.outputs.is_empty) }}
|
|
run: |
|
|
subatomic-cli upload --prune \
|
|
--server https://subatomic.fyralabs.com \
|
|
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
|
${{ matrix.version }} anda-build/rpm/rpms/*
|