|
1 |
| -name: Package |
| 1 | +name: Build package |
2 | 2 |
|
3 | 3 | on:
|
4 | 4 | push:
|
5 |
| - branches: [main] |
| 5 | + branches: |
| 6 | + - main |
6 | 7 | workflow_dispatch:
|
7 | 8 |
|
8 | 9 | jobs:
|
9 | 10 | 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/* |
0 commit comments