forked from endeavouros-team/EndeavourOS-ISO
-
Notifications
You must be signed in to change notification settings - Fork 4
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
a96d86b
commit e767dcd
Showing
15 changed files
with
127 additions
and
51 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,84 @@ | ||
name: Build EndeavourOS 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@v2 | ||
- name: Build In Docker | ||
if: ${{ !contains(github.event.head_commit.message, '[no build]') }} | ||
run: | | ||
cat << \EOF > entrypoint.sh | ||
pacman -Syu base base-devel reflector --needed --noconfirm | ||
reflector --verbose --country $(curl https://ipv4.myip.wtf/text/country) --protocol http,https --latest 10 --sort rate --save /etc/pacman.d/mirrorlist | ||
pacman-key --init | ||
pacman -Syu wget --needed --noconfirm | ||
pacman -Syu archlinux-keyring --noconfirm | ||
cd /etc/pacman.d/ | ||
touch endeavouros-mirrorlist | ||
echo "Server = https://mirror.funami.tech/endeavouros/repo/\$repo/\$arch" > endeavouros-mirrorlist | ||
echo "Server = https://mirror.jingk.ai/endeavouros/repo/\$repo/\$arch" >> endeavouros-mirrorlist | ||
cat endeavouros-mirrorlist | ||
cd .. | ||
printf "\n" >> pacman.conf | ||
echo "[endeavouros]" >> pacman.conf | ||
echo "SigLevel = Never" >> pacman.conf | ||
echo "Include = /etc/pacman.d/endeavouros-mirrorlist" >> pacman.conf | ||
printf "\n" >> pacman.conf | ||
cat pacman.conf | ||
wget https://raw.githubusercontent.com/endeavouros-team/keyring/main/endeavouros.gpg -O endeavouros.gpg | ||
wget https://mirror.funami.tech/endeavouros/repo/endeavouros/x86_64/endeavouros-keyring-20230523-1-any.pkg.tar.zst | ||
pacman -U endeavouros-keyring-20230523-1-any.pkg.tar.zst --noconfirm --needed | ||
pacman-key --add endeavouros.gpg && sudo pacman-key --lsign-key 497AF50C92AD2384C56E1ACA003DB8B0CB23504F | ||
pacman-key --populate | ||
pacman-key --recv-keys 8BE1FEE14302371DEF6F910A0E5877AC225D1980 --keyserver hkps://keyserver.ubuntu.com | ||
pacman-key --lsign-key 8BE1FEE14302371DEF6F910A0E5877AC225D1980 | ||
pacman-key --populate | ||
pacman -Syu | ||
pacman-key --populate | ||
pacman-key --populate archlinux | ||
cd /build | ||
useradd builduser -m | ||
passwd -d builduser | ||
pacman -Syu --noconfirm --needed sudo git base-devel | ||
pacman -S archiso mkinitcpio-archiso git squashfs-tools --needed --noconfirm | ||
printf "builduser ALL=NOPASSWD: ALL\n" | tee -a /etc/sudoers | ||
chown -R builduser:builduser ./ | ||
sudo -u builduser bash ./prepare.sh | ||
./mkarchiso "." | ||
EOF | ||
docker run --privileged -t -v $PWD:/build archlinux /bin/bash /build/entrypoint.sh | ||
- name: Upload Built ISO | ||
if: ${{ github.ref == 'refs/heads/Cassini-Nova-R1' && !contains(github.event.head_commit.message, '[no rel]') && !contains(github.event.head_commit.message, '[no build]') }} | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: built-iso | ||
path: ${{ github.workspace }}/out/*.iso | ||
- name: Create Tag | ||
id: create_tag | ||
if: ${{ github.ref == 'refs/heads/Cassini-Nova-R1' && !contains(github.event.head_commit.message, '[no rel]') && !contains(github.event.head_commit.message, '[no build]') }} | ||
run: | | ||
export TAG=$(date +%Y.%m.%d) | ||
echo "::set-output name=tag::${TAG}" | ||
echo $TAG | ||
- name: Release | ||
if: ${{ github.ref == 'refs/heads/Cassini-Nova-R1' && !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/*.iso | ||
tag_name: ${{ steps.create_tag.outputs.tag }} | ||
name: ${{ steps.create_tag.outputs.tag }} | ||
draft: ${{ contains(github.event.head_commit.message, '[draft]') }} | ||
prerelease: ${{ contains(github.event.head_commit.message, '[prerel]') }} | ||
body: | | ||
Follow [this guide](https://wiki.t2linux.org/distributions/endeavouros/installation/) using this ISO to install EndeavourOS on your T2 Mac | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1,3 @@ | ||
# | ||
# SPDX-License-Identifier: GPL-3.0-or-later | ||
EndeavourOS | ||
EndeavourOS-T2 |
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
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
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
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
1 change: 1 addition & 0 deletions
1
airootfs/etc/systemd/system/multi-user.target.wants/t2fand.service
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 @@ | ||
/usr/lib/systemd/system/t2fand.service |
1 change: 1 addition & 0 deletions
1
airootfs/etc/systemd/system/multi-user.target.wants/touchbard.service
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 @@ | ||
/usr/lib/systemd/system/touchbard.service |
Empty file.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,7 +1,6 @@ | ||
title EndeavourOS x86_64 UEFI Default | ||
sort-key A | ||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux | ||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2 | ||
initrd /%INSTALL_DIR%/boot/intel-ucode.img | ||
initrd /%INSTALL_DIR%/boot/amd-ucode.img | ||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img | ||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram=n module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm,pcspkr nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 nvme_load=yes | ||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img | ||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram=n module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm,pcspkr nouveau.modeset=1 i915.modeset=1 radeon.modeset=1 nvme_load=yes intel_iommu=on iommu=pt pcie_ports=compat |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
title EndeavourOS x86_64 Fallback (nomodeset) | ||
sort-key C | ||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux | ||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux.img | ||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram=n module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm nomodeset nvme_load=yes | ||
linux /%INSTALL_DIR%/boot/x86_64/vmlinuz-linux-t2 | ||
initrd /%INSTALL_DIR%/boot/x86_64/initramfs-linux-t2.img | ||
options archisobasedir=%INSTALL_DIR% archisolabel=%ARCHISO_LABEL% cow_spacesize=10G copytoram=n module_blacklist=nvidia,nvidia_modeset,nvidia_uvm,nvidia_drm nomodeset nvme_load=yes intel_iommu=on iommu=pt pcie_ports=compat |
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
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