Skip to content

Commit f4b3bc2

Browse files
authored
feat(workflows): Add workflow for Python 3.14 library (#251)
Reviewed-by: Razvan Deaconescu <razvand@unikraft.io> Approved-by: Razvan Deaconescu <razvand@unikraft.io>
2 parents bbcbcb3 + d684f26 commit f4b3bc2

File tree

1 file changed

+78
-0
lines changed

1 file changed

+78
-0
lines changed
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: library/python3.14
2+
3+
on:
4+
repository_dispatch:
5+
types: [core_merge]
6+
7+
workflow_dispatch:
8+
9+
schedule:
10+
- cron: '30 1 * * *'
11+
12+
push:
13+
branches: [main]
14+
paths:
15+
- 'library/python/3.14/**'
16+
- '.github/workflows/library-python3.14.yaml'
17+
18+
pull_request:
19+
types: [opened, synchronize, reopened]
20+
branches: [main]
21+
paths:
22+
- 'library/python/3.14/**'
23+
- '.github/workflows/library-python3.14.yaml'
24+
25+
jobs:
26+
build:
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
include:
31+
- plat: qemu
32+
arch: x86_64
33+
- plat: fc
34+
arch: x86_64
35+
36+
runs-on: ubuntu-latest
37+
38+
steps:
39+
- uses: actions/checkout@v4
40+
41+
- name: Build python3.14
42+
uses: unikraft/kraftkit@staging
43+
with:
44+
loglevel: debug
45+
workdir: library/python/3.14
46+
runtimedir: /github/workspace/.kraftkit
47+
plat: ${{ matrix.plat }}
48+
arch: ${{ matrix.arch }}
49+
push: false
50+
output: oci://index.unikraft.io/unikraft.org/python:3.14
51+
52+
- name: Archive OCI digests
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: oci-digests-${{ matrix.arch }}-${{ matrix.plat }}
56+
path: ${{ github.workspace }}/.kraftkit/oci/digests
57+
if-no-files-found: error
58+
59+
push:
60+
if: ${{ github.event_name == 'push' || github.event_name == 'schedule' }}
61+
needs: [ build ]
62+
runs-on: ubuntu-latest
63+
64+
steps:
65+
- uses: actions/checkout@v4
66+
67+
- name: Login to OCI registry
68+
uses: docker/login-action@v3
69+
with:
70+
registry: index.unikraft.io
71+
username: ${{ secrets.REG_USERNAME }}
72+
password: ${{ secrets.REG_TOKEN }}
73+
74+
- name: Retrieve, merge and push OCI digests
75+
uses: ./.github/actions/merge-oci-digests
76+
with:
77+
name: index.unikraft.io/unikraft.org/python:3.14
78+
push: true

0 commit comments

Comments
 (0)