-
Notifications
You must be signed in to change notification settings - Fork 2
33 lines (31 loc) · 1.08 KB
/
Copy pathpython-build.yaml
File metadata and controls
33 lines (31 loc) · 1.08 KB
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
name: Build archinstoo
on: [ push ]
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Prepare arch
run: |
pacman-key --init
pacman --noconfirm -Sy archlinux-keyring
pacman --noconfirm -Syyu
pacman --noconfirm -Sy python-setuptools python-pip python-build
pacman --noconfirm -Sy python-pyparted
- name: Remove existing archinstall (if any)
run: pip uninstall -y archinstoo --break-system-packages || true
- name: Build archinstoo
run: python -m build --wheel archinstoo
- name: Install archinstoo
run: pip install archinstoo/dist/*.whl --break-system-packages --no-deps
- name: Run archinstoo
run: |
python -V
archinstoo --help
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7
with:
name: archinstoo
path: archinstoo/dist/*