mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
02b776758b
* chore(ci): rename arm64-lg
Signed-off-by: madomado <madonuko@outlook.com>
* Update build.yml
Signed-off-by: madomado <madonuko@outlook.com>
* Update json-build.yml
Signed-off-by: madomado <madonuko@outlook.com>
* Update bootstrap.yml
Signed-off-by: madomado <madonuko@outlook.com>
---------
Signed-off-by: madomado <madonuko@outlook.com>
(cherry picked from commit 7f08625627)
Co-authored-by: madomado <madonuko@outlook.com>
64 lines
2.2 KiB
YAML
64 lines
2.2 KiB
YAML
name: Bootstrap Andaman and Subatomic
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
bootstrap:
|
|
strategy:
|
|
matrix:
|
|
version: ["42"]
|
|
arch: ["x86_64", "aarch64"]
|
|
fail-fast: true
|
|
runs-on: ${{ matrix.arch == 'aarch64' && 'ubuntu-22.04-arm' || 'ubuntu-22.04' }}
|
|
container:
|
|
image: registry.fedoraproject.org/fedora-minimal:${{ matrix.version }}
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- name: Install repositories
|
|
run: |
|
|
dnf5 install -y --setopt=install_weak_deps=False curl wget git-core openssl-devel cargo podman fuse-overlayfs dnf5-plugins
|
|
dnf5 builddep -y anda/terra/{mock-configs,srpm-macros}/*.spec anda/tools/buildsys/{anda,subatomic}/*.spec
|
|
|
|
- name: Install Anda
|
|
run: cargo install anda
|
|
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
ref: f${{ matrix.version }}
|
|
fetch-depth: 1
|
|
- name: Build terra-mock-configs
|
|
run: |
|
|
echo "PATH=$PATH:/github/home/.cargo/bin" >> $GITHUB_ENV
|
|
export PATH=$PATH:/github/home/.cargo/bin
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
anda build -rrpmbuild anda/terra/mock-configs/pkg
|
|
- name: Install terra-mock-configs
|
|
run: dnf5 install -y anda-build/rpm/rpms/terra-mock-configs*.rpm
|
|
|
|
- name: Build anda-srpm-macros
|
|
run: anda build -rrpmbuild anda/terra/srpm-macros/pkg
|
|
|
|
- name: Build Subatomic
|
|
run: anda build -rrpmbuild anda/tools/buildsys/subatomic/pkg
|
|
- name: Install Subatomic
|
|
run: dnf5 install -y ./anda-build/rpm/rpms/subatomic-*.rpm
|
|
|
|
- name: Build Andaman
|
|
run: anda build -rrpmbuild anda/tools/buildsys/anda/pkg
|
|
|
|
- name: Upload packages to subatomic
|
|
run: |
|
|
subatomic-cli upload --prune \
|
|
--server https://subatomic.fyralabs.com \
|
|
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
|
terra${{ matrix.version }} anda-build/rpm/rpms/*
|
|
|
|
- name: Upload source packages to subatomic
|
|
if: github.event_name == 'push'
|
|
run: |
|
|
subatomic-cli upload --prune \
|
|
--server https://subatomic.fyralabs.com \
|
|
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
|
terra${{ matrix.version }}-source anda-build/rpm/srpm/*
|