Skip to content

Commit 6ed7762

Browse files
committed
migrate to anda
1 parent 28f8e5b commit 6ed7762

File tree

2 files changed

+48
-25
lines changed

2 files changed

+48
-25
lines changed

.github/workflows/package.yml

+43-25
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,50 @@
1-
name: Package
1+
name: Build package
22

33
on:
44
push:
5-
branches: [main]
5+
branches:
6+
- main
67
workflow_dispatch:
78

89
jobs:
910
build:
10-
uses: tau-OS/github-actions/.github/workflows/build-rpm.yml@main
11-
with:
12-
name: "tau-helium"
13-
sign:
14-
needs:
15-
- build
16-
uses: tau-OS/github-actions/.github/workflows/sign-rpm.yml@main
17-
if: github.ref == 'refs/heads/main'
18-
with:
19-
name: "tau-helium"
20-
secrets:
21-
signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
22-
upload:
23-
needs:
24-
- sign
25-
uses: tau-OS/github-actions/.github/workflows/upload-rpm.yml@main
26-
with:
27-
name: "tau-helium"
28-
tauOSVersion: "1"
29-
secrets:
30-
repoIP: ${{ secrets.REPO_IP }}
31-
repoKnownHosts: ${{ secrets.REPO_KNOWN_HOSTS }}
32-
repoPrivateKey: ${{ secrets.REPO_PRIVATE_KEY }}
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
pkg:
15+
- tau-helium
16+
arch:
17+
- x86_64
18+
version:
19+
- tau1
20+
runs-on: ${{ matrix.arch == 'aarch64' && 'ARM64' || 'ubuntu-latest' }}
21+
container:
22+
image: registry.fedoraproject.org/fedora:37
23+
options: --cap-add=SYS_ADMIN --privileged
24+
25+
steps:
26+
- name: Install repositories and dependencies
27+
run: |
28+
dnf install -y dnf-plugins-core
29+
dnf config-manager --add-repo https://github.com/terrapkg/subatomic-repos/raw/main/tau1.repo
30+
dnf install -y anda mock subatomic-cli tau-mock-configs git curl wget
31+
32+
- uses: actions/checkout@v3
33+
with:
34+
submodules: "recursive"
35+
set-safe-directory: true
36+
37+
- run: git config --global --add safe.directory $GITHUB_WORKSPACE
38+
39+
- uses: andaman-common-pkgs/anda-build@main
40+
with:
41+
name: ${{ matrix.pkg }}
42+
mockConfig: tau-1-${{ matrix.arch }}
43+
andaRepo: https://github.com/terrapkg/subatomic-repos/raw/main/terra37.repo
44+
45+
- name: Upload to subatomic
46+
run: |
47+
subatomic-cli upload --prune \
48+
--server https://subatomic.fyralabs.com \
49+
--token ${{ secrets.SUBATOMIC_TOKEN }} \
50+
${{ matrix.version }} anda-build/rpm/rpms/*

anda.hcl

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
project "tau-helium" {
2+
rpm {
3+
spec = "tau-helium.spec"
4+
}
5+
}

0 commit comments

Comments
 (0)