forked from archlinux/archinstall
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
03c1989
commit 67c8e9f
Showing
1 changed file
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 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@v4 | ||
- name: Prepare arch | ||
run: | | ||
pacman-key --init | ||
pacman --noconfirm -Sy archlinux-keyring | ||
pacman --noconfirm -Syyu | ||
pacman --noconfirm -Sy python-pip python-pyparted python-simple-term-menu 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: | | ||
truncate -s 20G testimage.img | ||
losetup --partscan --show --find ./testimage.img | ||
lsblk | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: archinstall | ||
path: dist/* |