Skip to content
This repository has been archived by the owner on Jun 2, 2024. It is now read-only.

Commit

Permalink
ref: improving performance on build job by executing all flavors at the
Browse files Browse the repository at this point in the history
same time
  • Loading branch information
iruzo committed May 25, 2024
1 parent 8688c20 commit fe3184e
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: "Generate test artifacts"


on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]


jobs:
build:
runs-on: ubuntu-latest

steps:

- name: Checkout
uses: actions/checkout@v4
with:
Expand All @@ -32,14 +29,18 @@ jobs:
run: |
python patches/xfwm4/generate_assets.py
python ./main.py mocha --all-accents --zip -d $PWD/releases &&
python ./main.py macchiato --all-accents --zip -d $PWD/releases &&
python ./main.py frappe --all-accents --zip -d $PWD/releases &&
python ./main.py latte --all-accents --zip -d $PWD/releases
python ./main.py mocha --all-accents --zip -d $PWD/releases/mocha &
python ./main.py macchiato --all-accents --zip -d $PWD/releases/macchiato &
python ./main.py frappe --all-accents --zip -d $PWD/releases/frappe &
python ./main.py latte --all-accents --zip -d $PWD/releases/latte &
wait
mv $PWD/releases/mocha/* $PWD/releases && rm -rf $PWD/releases/mocha
mv $PWD/releases/macchiato/* $PWD/releases && rm -rf $PWD/releases/macchiato
mv $PWD/releases/frappe/* $PWD/releases && rm -rf $PWD/releases/frappe
mv $PWD/releases/latte/* $PWD/releases && rm -rf $PWD/releases/latte
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: '${{ github.sha }}-artifacts'
path: ./releases/*.zip

0 comments on commit fe3184e

Please sign in to comment.