Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.github/workflows/python-build.yml
blob: 950ff8f4d58c72d768d22e123c48fceacec5382d (plain)
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
# This workflow will build Python packages on every commit.

name: Build archinstall

on: [ push, pull_request ]

jobs:
  deploy:
    runs-on: ubuntu-latest
    container:
      image: archlinux:latest
      options: --privileged
    steps:
      - uses: actions/checkout@v3
      - name: Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: '3.10'
      - name: Prepare arch
        run: |
          pacman-key --init
          pacman --noconfirm -Sy archlinux-keyring
          pacman --noconfirm -Sy python-pyparted pkgconfig gcc
      - name: Install build dependencies
        run: |
          python -m pip install --upgrade pip
          pip install --upgrade build twine wheel setuptools installer
          pip uninstall archinstall -y
      - name: Install package dependencies
        run: |
          pip install --upgrade simple-term-menu pyparted
      - name: Build archinstall
        run: python -m build --wheel --no-isolation
      - name: Install archinstall
        run: python -m installer dist/*.whl
      - name: Run archinstall
        run: |
          python -V
          archinstall --script guided -v
          archinstall --script swiss -v
          archinstall --script only_hd -v
          archinstall --script minimal -v
      - uses: actions/upload-artifact@v3
        with:
          name: archinstall
          path: dist/*