mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
a16b7bce95
* chore: sync with Terra 39 * fix: update mock-configs path * fix: use f38 specs for desktops * chore: move more lomiri/unity specific packages (#880) * Fix(ubuntu-sdk): update description & version (#878) Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com> * fix: disable docs package (#887) * sync more changes from f39 * add keyd fixes --------- Signed-off-by: cat-master21 <96554164+cat-master21@users.noreply.github.com> Signed-off-by: lleyton <lleyton@fyralabs.com> Co-authored-by: cat-master21 <96554164+cat-master21@users.noreply.github.com>
78 lines
2.4 KiB
YAML
78 lines
2.4 KiB
YAML
name: Bootstrap Andaman and Subatomic
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
bootstrap:
|
|
strategy:
|
|
matrix:
|
|
version: ["38"]
|
|
arch: ["x86_64", "aarch64"]
|
|
fail-fast: true
|
|
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
|
|
container:
|
|
image: fedora:38
|
|
options: --cap-add=SYS_ADMIN --privileged
|
|
steps:
|
|
- uses: actions/setup-go@v3
|
|
with:
|
|
go-version: "^1.19"
|
|
|
|
- name: Install repositories
|
|
run: |
|
|
sudo dnf install -y dnf-plugins-core
|
|
sudo dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/terra${{ matrix.version }}.repo
|
|
sudo dnf install -y mock createrepo_c rpm-build gcc curl wget git-core openssl-devel
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
- name: Install Anda
|
|
uses: actions-rs/cargo@v1
|
|
with:
|
|
command: install
|
|
args: anda
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: f${{ matrix.version} }}
|
|
fetch-depth: 1
|
|
- name: Build terra-mock-configs
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
anda build -c fedora-${{ matrix.version }}-${{ matrix.arch }} anda/terra/mock-configs/pkg -p rpm
|
|
- name: Install terra-mock-configs
|
|
run: sudo dnf install -y anda-build/rpm/rpms/terra-mock-configs*.rpm
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: FyraLabs/subatomic
|
|
set-safe-directory: true
|
|
fetch-depth: 1
|
|
|
|
- name: Build Subatomic
|
|
run: |
|
|
git config --global --add safe.directory "$GITHUB_WORKSPACE"
|
|
anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} subatomic -p rpm -D "autogitcommit $(git log -1 --format='%H')"
|
|
- name: Install Subatomic
|
|
run: sudo dnf install -y ./anda-build/rpm/rpms/subatomic-*.rpm
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
repository: FyraLabs/anda
|
|
fetch-depth: 1
|
|
|
|
- name: Build Andaman
|
|
run: anda build -c terra-${{ matrix.version }}-${{ matrix.arch }} anda -p rpm
|
|
|
|
|
|
- name: Upload to Subatomic
|
|
run: |
|
|
subatomic-cli upload --prune \
|
|
--server https://subatomic.fyralabs.com \
|
|
--token ${{ secrets.SUBATOMIC_TOKEN }} \
|
|
terra${{ matrix.version }} anda-build/rpm/rpms/*
|