Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/.github/workflows/iso-build.yaml
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-04-11 19:48:59 +0000
committerGitHub <noreply@github.com>2021-04-11 19:48:59 +0000
commit6f08ad1d4b333ca12c4d729fbcb029b49097ce7d (patch)
treebca0a6fd5ab907d5e7b3d100010887bc3b159a18 /.github/workflows/iso-build.yaml
parentbe45268d0bca2ee978d82d8361a12c5025a8baae (diff)
parent2321a7afce6ae84a0ab1904a5ea5291011534bce (diff)
Merge pull request #275 from dylanmtaylor/continuous-integration
GitHub Actions: Build Arch Live ISO With Each Commit Included
Diffstat (limited to '.github/workflows/iso-build.yaml')
-rw-r--r--.github/workflows/iso-build.yaml28
1 files changed, 28 insertions, 0 deletions
diff --git a/.github/workflows/iso-build.yaml b/.github/workflows/iso-build.yaml
new file mode 100644
index 00000000..229a37be
--- /dev/null
+++ b/.github/workflows/iso-build.yaml
@@ -0,0 +1,28 @@
+# This workflow will build an Arch Linux ISO file with the commit on it
+
+name: Build Arch ISO with ArchInstall Commit
+
+on: pull_request
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ container:
+ image: archlinux:latest
+ options: --privileged
+ steps:
+ - uses: actions/checkout@v2
+ - run: pwd
+ - run: find .
+ - run: cat /etc/os-release
+ - 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; python setup.py install; echo 'Type python -m archinstall to launch archinstall'" > /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-setuptools" >> /tmp/archlive/packages.x86_64
+ - run: find /tmp/archlive
+ - run: cd /tmp/archlive; mkarchiso -v -w work/ -o out/ ./
+ - uses: actions/upload-artifact@v2
+ with:
+ name: Arch Live ISO
+ path: /tmp/archlive/out/*.iso