This repository has been archived by the owner on Jun 2, 2024. It is now read-only.
perf: improving performance, layout #146
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: "Generate test artifacts" | |
on: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
cache: "pip" | |
- name: Install dependencies | |
run: | | |
sudo apt update && sudo apt install -y sassc inkscape optipng | |
pip install -r requirements.txt | |
- name: Generate themes | |
run: | | |
set -eu pipefile | |
python sources/patches/xfwm4/generate_assets.py | |
python ./build.py mocha --all-accents --zip -d $PWD/releases > mocha.log 2>&1 & | |
python ./build.py macchiato --all-accents --zip -d $PWD/releases > macchiato.log 2>&1 & | |
python ./build.py frappe --all-accents --zip -d $PWD/releases > frappe.log 2>&1 & | |
python ./build.py latte --all-accents --zip -d $PWD/releases > latte.log 2>&1 & | |
declare -i err=0 werr=0 | |
while wait -fn || werr=$?; ((werr != 127)); do | |
err=$werr | |
if [[ $err -ne 0 ]]; then | |
echo "Build failure, abort" | |
cat *.log | |
exit 1 | |
fi | |
done | |
cat *.log | |
- name: Upload artifacts | |
uses: actions/upload-artifact@v4 | |
with: | |
name: '${{ github.sha }}-artifacts' | |
path: ./releases/*.zip |