-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 1.13 KB
/
python-build.yml
File metadata and controls
35 lines (32 loc) · 1.13 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
34
35
# This workflow will build Python packages on every commit.
name: Build archinstoo
on: [ push ]
jobs:
deploy:
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:latest
options: --privileged
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- 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/*