forked from AndydeCleyre/archbuilder_iosevka
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Your Name 2
committed
May 15, 2023
1 parent
4fffeed
commit c633bfd
Showing
2 changed files
with
8 additions
and
104 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 |
---|---|---|
@@ -1,87 +0,0 @@ | ||
name: Build and upload Arch Linux packages | ||
on: | ||
push: | ||
tags: | ||
- '**' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
|
||
- name: create and update build ctnr from official repos | ||
run: | | ||
buildah from --name ctnr docker.io/library/archlinux:base-devel | ||
buildah copy ctnr 'https://archlinux.org/mirrorlist/?country=US&protocol=https&ip_version=4&ip_version=6&use_mirror_status=on' /tmp/mirrorlist | ||
buildah run ctnr sh -c "sed 's/^#Server =/Server =/g' /tmp/mirrorlist | shuf >/etc/pacman.d/mirrorlist" | ||
buildah run ctnr chmod 0644 /etc/pacman.d/mirrorlist | ||
buildah run ctnr pacman --noconfirm -Syu | ||
buildah run ctnr pacman --noconfirm -S --needed git | ||
- name: add non-root user to build ctnr | ||
run: | | ||
buildah run ctnr useradd -m dev | ||
buildah run ctnr sh -c 'printf "%s\n" "dev ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/dev' | ||
- name: build and install AUR dep ttfautohint | ||
run: | | ||
buildah config -u dev ctnr | ||
buildah run ctnr gpg --keyserver keyserver.ubuntu.com --recv-keys 58E0C111E39F5408C5D3EC76C1A60EACE707FDA5 | ||
buildah run ctnr git clone https://aur.archlinux.org/ttfautohint /home/dev/ttfautohint | ||
buildah config --workingdir /home/dev/ttfautohint ctnr | ||
buildah run ctnr makepkg --noconfirm -si | ||
- name: install templating tools | ||
run: | | ||
python3 -m pip install -U pip setuptools wheel | ||
python3 -m pip install -r requirements.txt | ||
printf '%s\n' "$HOME/.local/bin" >>$GITHUB_PATH | ||
- name: render PKGBUILDs | ||
run: ./mk/pkgbuilds.sh | ||
|
||
- name: copy ttf-iosevka-term-custom-git PKGBUILD into build ctnr | ||
run: | | ||
buildah copy --chown dev ctnr pkgs/ttf-iosevka-term-custom-git /home/dev/ttf-iosevka-term-custom-git | ||
- name: build and siphon ttf-iosevka-term-custom-git from build ctnr | ||
run: | | ||
buildah config -u dev --workingdir /home/dev/ttf-iosevka-term-custom-git ctnr | ||
buildah run ctnr makepkg --noconfirm -s | ||
buildah run ctnr ls -lh | ||
pkg="$(buildah run ctnr sh -c "printf '%s\n' *.pkg.*")" | ||
mkdir -p "${RUNNER_TEMP}/dist" | ||
buildah run ctnr cat "$pkg" >"${RUNNER_TEMP}/dist/${pkg}" | ||
printf '%s\n' "${RUNNER_TEMP}/dist/" | ||
ls -lh "${RUNNER_TEMP}/dist/" | ||
- name: copy ttf-iosevka-quasi-proportional-extension-only-custom-git PKGBUILD into build ctnr | ||
run: | | ||
buildah copy --chown dev ctnr pkgs/ttf-iosevka-quasi-proportional-extension-only-custom-git /home/dev/ttf-iosevka-quasi-proportional-extension-only-custom-git | ||
- name: build and siphon ttf-iosevka-quasi-proportional-extension-only-custom-git from build ctnr | ||
run: | | ||
buildah config -u dev --workingdir /home/dev/ttf-iosevka-quasi-proportional-extension-only-custom-git ctnr | ||
buildah run ctnr makepkg --noconfirm -s | ||
buildah run ctnr ls -lh | ||
pkg="$(buildah run ctnr sh -c "printf '%s\n' *.pkg.*")" | ||
mkdir -p "${RUNNER_TEMP}/dist" | ||
buildah run ctnr cat "$pkg" >"${RUNNER_TEMP}/dist/${pkg}" | ||
printf '%s\n' "${RUNNER_TEMP}/dist/" | ||
ls -lh "${RUNNER_TEMP}/dist/" | ||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: ${{ runner.temp }}/dist/* | ||
fail_on_unmatched_files: true | ||
body_path: private-build-plans.toml | ||
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