Skip to content

Commit 7d05d8c

Browse files
authored
Create ultramarine-weekly.yml
1 parent 92ff0be commit 7d05d8c

File tree

1 file changed

+74
-0
lines changed

1 file changed

+74
-0
lines changed
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
on:
2+
schedule:
3+
- cron: "0 0 * * 0"
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
run-polycrystal:
14+
name: Run Polycrystal
15+
runs-on: ubuntu-latest
16+
strategy:
17+
matrix:
18+
arch: [x86_64, aarch64]
19+
edition: [flagship, gnome, plasma, xfce]
20+
releasever: [42]
21+
container:
22+
image: ghcr.io/terrapkg/builder:f${{ matrix.releasever }}
23+
options: --cap-add=SYS_ADMIN --privileged
24+
steps:
25+
- name: Install required packages
26+
run: |
27+
dnf5 install -y --allowerasing --nogpgcheck \
28+
--repofrompath 'ultramarine,https://repos.fyralabs.com/um$releasever' \
29+
polycrystal ultramarine-release-identity-${{ matrix.edition }} ultramarine-repos-extras
30+
- uses: actions/cache@v4
31+
with:
32+
key: flatpak-um${{ matrix.releasever }}-${{ matrix.edition }}-${{ matrix.arch }}
33+
path: |
34+
/var/lib/polycrystal
35+
/var/lib/flatpak
36+
- run: polycrystal
37+
- name: Compress to tarball
38+
run: cd /var/lib && tar -I 'zstd --ultra -22' -cf /flatpak.tar.zst flatpak/
39+
- uses: actions/upload-artifact@v4
40+
with:
41+
name: flatpak-um${{ matrix.releasever }}-${{ matrix.edition }}-${{ matrix.arch }}
42+
path: /flatpak.tar.zst
43+
compression-level: 0
44+
45+
release:
46+
name: Create Release
47+
runs-on: ubuntu-latest
48+
needs: [run-polycrystal]
49+
steps:
50+
- name: Download artifacts
51+
uses: actions/download-artifact@v4
52+
with:
53+
path: $GITHUB_WORKSPACE/artifacts/
54+
- name: Create tag
55+
id: tag
56+
uses: K-Phoen/semver-release-action@v1
57+
with:
58+
release_branch: main
59+
release_strategy: tag
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
- name: Create release
63+
if: steps.tag_and_prepare_release.outputs.tag
64+
uses: Roang-zero1/github-create-release-action@v3
65+
with:
66+
created_tag: ${{ steps.tag.outputs.tag }}
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69+
- name: Upload release artifacts
70+
uses: Roang-zero1/github-upload-release-artifacts-action@v3
71+
with:
72+
args: $GITHUB_WORKSPACE/artifacts/
73+
env:
74+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)