Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/iso-build.yaml12
-rw-r--r--.github/workflows/mypy.yaml6
-rw-r--r--.github/workflows/python-build.yml27
3 files changed, 24 insertions, 21 deletions
diff --git a/.github/workflows/iso-build.yaml b/.github/workflows/iso-build.yaml
index ab4e6f5f..00e2c13f 100644
--- a/.github/workflows/iso-build.yaml
+++ b/.github/workflows/iso-build.yaml
@@ -32,17 +32,7 @@ jobs:
- run: cat /etc/os-release
- run: pacman-key --init
- run: pacman --noconfirm -Sy archlinux-keyring
- - run: mkdir -p /tmp/archlive/airootfs/root/archinstall-git; cp -r . /tmp/archlive/airootfs/root/archinstall-git
- - run: echo "pip uninstall archinstall -y; cd archinstall-git; rm -rf dist; python -m build -n; pip install dist/archinstall*.whl" > /tmp/archlive/airootfs/root/.zprofile
- - run: echo "echo \"This is an unofficial ISO for development and testing of archinstall. No support will be provided.\"" >> /tmp/archlive/airootfs/root/.zprofile
- - run: echo "echo \"This ISO was built from Git SHA $GITHUB_SHA\"" >> /tmp/archlive/airootfs/root/.zprofile
- - run: echo "echo \"Type archinstall to launch the installer.\"" >> /tmp/archlive/airootfs/root/.zprofile
- - run: cat /tmp/archlive/airootfs/root/.zprofile
- - run: pacman -Sy; pacman --noconfirm -S git archiso
- - run: cp -r /usr/share/archiso/configs/releng/* /tmp/archlive
- - run: echo -e "git\npython\npython-pip\npython-build\npython-flit\npython-setuptools\npython-wheel" >> /tmp/archlive/packages.x86_64
- - run: find /tmp/archlive
- - run: cd /tmp/archlive; mkarchiso -v -w work/ -o out/ ./
+ - run: ./build_iso.sh
- uses: actions/upload-artifact@v3
with:
name: Arch Live ISO
diff --git a/.github/workflows/mypy.yaml b/.github/workflows/mypy.yaml
index 20c98f3b..8689570f 100644
--- a/.github/workflows/mypy.yaml
+++ b/.github/workflows/mypy.yaml
@@ -15,8 +15,4 @@ jobs:
# one day this will be enabled
# run: mypy --strict --module archinstall || exit 0
- name: run mypy
- run: mypy --follow-imports=silent archinstall/lib/menu/abstract_menu.py archinstall/lib/menu/global_menu.py
- archinstall/lib/models/network_configuration.py archinstall/lib/menu/list_manager.py archinstall/lib/user_interaction/network_conf.py archinstall/lib/models/users.py
- archinstall/lib/disk/blockdevice.py archinstall/lib/user_interaction/subvolume_config.py archinstall/lib/disk/btrfs/btrfs_helpers.py
- archinstall/lib/translationhandler.py archinstall/lib/disk/diskinfo.py archinstall/lib/menu/table_selection_menu.py archinstall/lib/hsm
- archinstall/lib/disk/encryption.py archinstall/lib/models/disk_encryption.py
+ run: mypy --config-file mypy.ini
diff --git a/.github/workflows/python-build.yml b/.github/workflows/python-build.yml
index 647ad70e..f98ce160 100644
--- a/.github/workflows/python-build.yml
+++ b/.github/workflows/python-build.yml
@@ -7,20 +7,37 @@ 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.x'
- - name: Install dependencies
+ 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 build twine
+ 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 -m build . --wheel
+ python -V
+ archinstall -v
- uses: actions/upload-artifact@v3
with:
name: archinstall
- path: dist/* \ No newline at end of file
+ path: dist/*