-
Notifications
You must be signed in to change notification settings - Fork 0
135 lines (116 loc) · 5.06 KB
/
build-qt6.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
on:
push:
branches:
- master
repository_dispatch:
types: [trigger_workflow]
env:
# Use docker.io for Docker Hub if empty
REGISTRY: ghcr.io
MANYLINUX_TAG: "2022-10-25-fbea779"
# github.repository as <account>/<repo>
IMAGE_NAME: ${{ github.repository }}
PYTHON_VERSION: "3.7"
PYTHON_SHORT_VERSION: "cp37-cp37m"
PYTHON_WHEEL_VERSION: "cp37-abi3"
PYTHON_FULL_VERSION: "3.7.15"
PYSIDE_VERSION: "6"
QT_VERSION_MAJOR: "6"
QT_VERSION_MINOR: "5"
QT_VERSION_PATCH: "2"
QT_VERSION: "6.5"
QT_FULL_VERSION: "6.5.2"
GCC_VERSION: "11.2.1"
LLVM_VERSION: "13.0.1"
LIMA_PYTHON_VERSION: "0.5.0b6"
jobs:
lima-python:
name: "Build the lima-python image with Qt ${QT_VERSION} for python ${PYTHON_VERSION}"
runs-on: ubuntu-latest
steps:
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.AYMARA_DOCKERHUB_USERNAME }}
password: ${{ secrets.AYMARA_DOCKERHUB_TOKEN }}
- name: "Checkout code"
uses: actions/checkout@v2
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.2.0
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
- name: "Build image"
run: docker build -f Dockerfile-manylinux_2_28 --build-arg MANYLINUX_TAG="${MANYLINUX_TAG}" --build-arg PYSIDE_VERSION="${PYSIDE_VERSION}" --build-arg PYTHON_VERSION="${PYTHON_VERSION}" --build-arg PYTHON_SHORT_VERSION=${PYTHON_SHORT_VERSION} --build-arg PYTHON_FULL_VERSION=${PYTHON_FULL_VERSION} --build-arg LIMA_PYTHON_VERSION=${LIMA_PYTHON_VERSION} --build-arg PYTHON_WHEEL_VERSION="${PYTHON_WHEEL_VERSION}" --build-arg BRANCH="${{ github.ref_name }}" --build-arg QT_FULL_VERSION="${QT_FULL_VERSION}" --build-arg QT_VERSION_MAJOR="${QT_VERSION_MAJOR}" --build-arg QT_VERSION_MINOR="${QT_VERSION_MINOR}" --build-arg QT_VERSION_PATCH="${QT_VERSION_PATCH}" --build-arg QT_VERSION="${QT_VERSION}" -t aymara/lima-python${PYTHON_VERSION}:latest .
- name: "Push image"
run: docker push aymara/lima-python${PYTHON_VERSION}:latest
- uses: shrink/actions-docker-extract@v2
id: extract
with:
image: aymara/lima-python${PYTHON_VERSION}:latest
path: /lima-python/wheelhouse/aymara-${LIMA_PYTHON_VERSION}-${PYTHON_WHEEL_VERSION}-manylinux_2_28_x86_64.whl
destination: dist
# - name: move wheel
# run: mv .extracted-*/aymara-${LIMA_PYTHON_VERSION}-${PYTHON_WHEEL_VERSION}-manylinux_2_28_x86_64.whl ${{ github.workspace }}/aymara-${LIMA_PYTHON_VERSION}-${PYTHON_WHEEL_VERSION}-manylinux_2_28_x86_64.whl
- name: upload wheel artifact
uses: actions/upload-artifact@v4
with:
name: aymara-${{ env.LIMA_PYTHON_VERSION }}-${{env.PYTHON_WHEEL_VERSION}}-manylinux_2_28_x86_64.whl
path: dist
if-no-files-found: error
overwrite: true
compression-level: 0 # wheels are already zip files
lima-python-tests:
name: "Build the lima-python test image with Qt ${QT_VERSION} for python ${PYTHON_VERSION}"
runs-on: ubuntu-latest
needs: lima-python
permissions:
contents: write
steps:
-
name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.AYMARA_DOCKERHUB_USERNAME }}
password: ${{ secrets.AYMARA_DOCKERHUB_TOKEN }}
- name: "Checkout code"
uses: actions/checkout@v2
- name: Free Disk Space (Ubuntu)
uses: jlumbroso/free-disk-space@v1.2.0
with:
# this might remove tools that are actually needed,
# if set to "true" but frees about 6 GB
tool-cache: false
# all of these default to true, but feel free to set to
# "false" if necessary for your workflow
android: true
dotnet: true
haskell: true
large-packages: false
swap-storage: true
- name: "Build image"
run: docker build -f Dockerfile-tests-actions --build-arg PYTHON_VERSION="${PYTHON_VERSION}" --build-arg PYTHON_WHEEL_VERSION="${PYTHON_WHEEL_VERSION}" --build-arg LIMA_PYTHON_VERSION=${LIMA_PYTHON_VERSION} .
# Retrieve artifact from build job
- name: Download wheel artifact
uses: actions/download-artifact@v4
with:
path: dist
name: aymara-${{ env.LIMA_PYTHON_VERSION }}-${{env.PYTHON_WHEEL_VERSION}}-manylinux_2_28_x86_64.whl
# - run: zip -r dist.zip dist/
- uses: ncipollo/release-action@v1
with:
artifacts: dist/aymara-${{ env.LIMA_PYTHON_VERSION }}-${{env.PYTHON_WHEEL_VERSION}}-manylinux_2_28_x86_64.whl
allowUpdates: true
artifactErrorsFailBuild: true
prerelease: true
tag: continuous
commit: ${{ github.ref_name }}