40 lines
1.3 KiB
YAML
40 lines
1.3 KiB
YAML
# 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/archlinux:latest
|
|
options: --privileged
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
- name: Prepare arch
|
|
run: |
|
|
pacman-key --init
|
|
pacman --noconfirm -Sy archlinux-keyring
|
|
pacman --noconfirm -Syyu
|
|
pacman --noconfirm -Sy python-pip python-pydantic python-pyparted pkgconfig gcc
|
|
- name: Install build dependencies
|
|
run: |
|
|
python -m pip install --break-system-packages --upgrade pip
|
|
pip install --break-system-packages --upgrade build twine wheel setuptools installer
|
|
pip uninstall archinstall -y --break-system-packages
|
|
- 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 only_hd -v
|
|
archinstall --script minimal -v
|
|
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
with:
|
|
name: archinstall
|
|
path: dist/*
|