Skip to content

Commit

Permalink
ltns
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name 2 committed May 15, 2023
1 parent 4fffeed commit c633bfd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 104 deletions.
87 changes: 0 additions & 87 deletions .github/workflows/buildpkg.yml
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
25 changes: 8 additions & 17 deletions vars.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
build: # Uncomment the ones you wish to build
build:
# - ttf-iosevka-git
# - ttf-iosevka-custom-git
- ttf-iosevka-term-custom-git
- ttf-iosevka-custom-git
# - ttf-iosevka-term-custom-git
# - ttf-iosevka-fontconfig-mono-custom-git
# - ttf-iosevka-fixed-custom-git
# - ttf-iosevka-quasi-proportional-custom-git
- ttf-iosevka-quasi-proportional-extension-only-custom-git
spacings: # No need to change this list
# - ttf-iosevka-quasi-proportional-extension-only-custom-git
spacings:
- '' # some wide glyphs
- term # fewer wide glyphs
- fontconfig-mono # no wide glyphs
- fixed # neither wide glyphs nor ligatures
- quasi-proportional # "normal" non-mono
- quasi-proportional-extension-only # "normal" non-mono without making anything narrower (e.g. "i")
- quasi-proportional
- quasi-proportional-extension-only
build_webfonts: no
branch: main
use_custom_weights: yes
Expand Down Expand Up @@ -86,8 +86,6 @@ charvars:
lower-lambda: curly
lower-mu: tailed
lower-xi: flat-top
cyrl-capital-zhe: curly
cyrl-zhe: curly
cyrl-capital-ze: unilateral-serifed
cyrl-ze: unilateral-serifed
cyrl-capital-ka: curly-serifless
Expand Down Expand Up @@ -124,16 +122,9 @@ charvars:
cent: open
percent: rings-segmented-slash
bar: natural-slope
lig-ltgteq: flat
ascii-single-quote: raised-comma
ascii-grave: straight
question: smooth
punctuation-dot: round
diacritic-dot: round
partial-derivative: curly-bar
micro-sign: tailless
lig-ltgteq: flat
lig-neq: slightly-slanted
lig-equal-chain: with-notch
lig-hyphen-chain: with-notch
lig-double-arrow-bar: with-notch
lig-single-arrow-bar: with-notch

0 comments on commit c633bfd

Please sign in to comment.