Try 2,3,4,5 serifed #104
Workflow file for this run
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
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: render PKGBUILDs | |
run: ./mk/pkgbuilds.sh | |
- name: copy ttf-iosevka-custom-git PKGBUILD into build ctnr | |
run: | | |
buildah copy --chown dev ctnr pkgs/ttf-iosevka-custom-git /home/dev/ttf-iosevka-custom-git | |
- name: build and siphon ttf-iosevka-custom-git from build ctnr | |
run: | | |
buildah config -u dev --workingdir /home/dev/ttf-iosevka-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-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-custom-git PKGBUILD into build ctnr | |
run: | | |
buildah copy --chown dev ctnr pkgs/ttf-iosevka-quasi-proportional-custom-git /home/dev/ttf-iosevka-quasi-proportional-custom-git | |
- name: build and siphon ttf-iosevka-quasi-proportional-custom-git from build ctnr | |
run: | | |
buildah config -u dev --workingdir /home/dev/ttf-iosevka-quasi-proportional-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: make release notes | |
run: | | |
printf '%s\n' '`vars.nt`:' '```yaml' >release.md | |
cat vars.nt >>release.md | |
printf '%s\n' '```' >>release.md | |
- name: Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: ${{ runner.temp }}/dist/* | |
fail_on_unmatched_files: true | |
body_path: release.md |