From df9d5bcaf64d24874e1d9cf05e177564d32cd438 Mon Sep 17 00:00:00 2001 From: EndermanXD <82046100+EndermanCo@users.noreply.github.com> Date: Thu, 25 Jul 2024 21:58:12 +0000 Subject: [PATCH] Update build.yaml --- .github/workflows/build.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a4e0f3a..e5aeeea 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -64,3 +64,34 @@ jobs: zip -s 1500m iso_parts/"$(ls *.iso)".zip "$(ls *.iso)" md5sum iso_parts/* > iso_parts/md5sums.txt gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }} + + + + build-amd: + permissions: + contents: write + runs-on: ubuntu-latest + container: + image: archlinux:latest + options: --privileged + steps: + - uses: actions/checkout@v3 + - name: Install Packages via Pacman + run: pacman -Syu --noconfirm; pacman --noconfirm -S git archiso python python-pygithub github-cli p7zip zip + - name: remove packages and profile of nvidia versions and Replace packages and profile with AMD versions + run: | + rm -f iso/airootfs/etc/mkinitcpio.conf-nvidia + mv iso/packages-amd.x86_64 iso/packages.x86_64 + mv iso/profiledef-amd.sh iso/profiledef.sh + rm -f iso/airoofs/etc/systemd/ + - name: Build non-Nvidia image + run: mkarchiso -v iso/ + - name: Upload AMD iso to the release + run: | + rm -rf ./work + cd ./out + mkdir iso_parts + md5sum "$(ls *.iso)" > iso_parts/iso-md5sums-amd.txt + zip -s 1500m iso_parts/"$(ls *.iso)".zip "$(ls *.iso)" + md5sum iso_parts/* > iso_parts/md5sums-amd.txt + gh release upload ${{ github.event.release.tag_name }} ./iso_parts/* -R ${{ github.repository }}