misc: remove some unnecessary packages #118
This file contains hidden or 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
| name: Build Arch ISO | |
| on: [push, pull_request, workflow_dispatch] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| if: ${{ !contains(github.event.head_commit.message, '[no build]') }} | |
| uses: actions/checkout@v3 | |
| - name: Build In Docker | |
| if: ${{ !contains(github.event.head_commit.message, '[no build]') }} | |
| run: | | |
| cat << EOF > entrypoint.sh | |
| cd /build | |
| useradd builduser -m | |
| passwd -d builduser | |
| pacman-key --init | |
| pacman-key --populate | |
| pacman -Syu --noconfirm --needed reflector curl | |
| reflector --country $(curl ipv4.myip.wtf/text/country) --sort rate -n 5 --save /etc/pacman.d/mirrorlist | |
| pacman -S --noconfirm --needed sudo git base-devel grub efibootmgr | |
| printf 'builduser ALL=(ALL) ALL\\n' | tee -a /etc/sudoers | |
| chown -R builduser:builduser ./ | |
| sudo -u builduser bash -c './prepare.sh' | |
| sudo -u builduser bash -c './build.sh' | |
| EOF | |
| docker run --privileged -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh | |
| - name: Upload Built ISO | |
| if: ${{ github.ref == 'refs/heads/senpai' && !contains(github.event.head_commit.message, '[no rel]') && !contains(github.event.head_commit.message, '[no build]') }} | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: built-iso | |
| path: ${{ github.workspace }}/out/archlinux-t2-*.iso | |
| - name: Create Tag | |
| id: create_tag | |
| if: ${{ github.ref == 'refs/heads/senpai' && !contains(github.event.head_commit.message, '[no rel]') && !contains(github.event.head_commit.message, '[no build]') }} | |
| run: | | |
| export TAG=$(date +%Y.%m.%d) | |
| echo "tag=${TAG}" >> $GITHUB_OUTPUT | |
| echo $TAG | |
| - name: Release | |
| if: ${{ github.ref == 'refs/heads/senpai' && !contains(github.event.head_commit.message, '[no rel]') && !contains(github.event.head_commit.message, '[no build]') }} | |
| uses: softprops/action-gh-release@v1 | |
| with: | |
| files: | | |
| ${{ github.workspace }}/out/archlinux-t2-*.iso | |
| tag_name: ${{ steps.create_tag.outputs.tag }} | |
| name: archlinux-t2-${{ steps.create_tag.outputs.tag }} - Release Watanare | |
| draft: ${{ contains(github.event.head_commit.message, '[draft]') }} | |
| prerelease: ${{ contains(github.event.head_commit.message, '[prerel]') }} | |
| body: | | |
| This release features Renako Amaori from There's No Freaking Way I'll Be Your Lover! Unless..., celebrating announcement of anime adaptation! | |
| Every major release will feature new anime/manga and minor releases will have different characters! | |
| Note that Arch ISO release follows kernel release name. | |
| Follow [this guide](https://wiki.t2linux.org/distributions/arch/installation/) using this ISO to install Arch on your T2 Mac | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |