Skip to content

Commit

Permalink
parallelize builds
Browse files Browse the repository at this point in the history
  • Loading branch information
koreanmelon committed Aug 5, 2024
1 parent a10801e commit e23da4c
Showing 1 changed file with 34 additions and 1 deletion.
35 changes: 34 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ permissions:
contents: read

jobs:
build:
build-base:
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -57,3 +57,36 @@ jobs:
name: orientalmelon.baechusportraits-${{ env.MOD_VERSION }}-base-sve
path: out/orientalmelon.baechusportraits-*-base-sve
if-no-files-found: error

build-sve:
runs-on: ubuntu-latest

steps:
- name: Checkout source
uses: actions/checkout@v4

- name: Install Poetry ${{env.POETRY_VERSION}}
run: pipx install poetry==${{env.POETRY_VERSION}}

- name: Setup Python ${{env.PYTHON_VERSION}}
uses: actions/setup-python@v5
with:
python-version: ${{env.PYTHON_VERSION}}
cache: "poetry"

- name: Install dependencies
run: poetry install --only main

- name: Build SVE content pack
run: poetry run python3 src/main.py -e SVE

- name: Get metadata
run: |
echo "MOD_VERSION=$(cat out/LATEST)" >> $GITHUB_ENV
- name: Save SVE content pack
uses: actions/upload-artifact@v4
with:
name: orientalmelon.baechusportraits-${{ env.MOD_VERSION }}-base-sve
path: out/orientalmelon.baechusportraits-*-base-sve
if-no-files-found: error

0 comments on commit e23da4c

Please sign in to comment.