Skip to content

Commit

Permalink
[#3] Add github workflow dispatch for generating maps (#7)
Browse files Browse the repository at this point in the history
  • Loading branch information
allenkinzalow authored Aug 14, 2024
1 parent 3378488 commit 57ae2f1
Showing 1 changed file with 48 additions and 0 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/workflow-dispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Generate Maps

on:
workflow_dispatch:

jobs:
generate-maps:
runs-on: macos-latest-large
steps:
- name: Check out Git repository
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 11
cache: maven

- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: pip

- name : Install python dependencies
run: pip install -r requirements.txt

- name: Install Maven dependencies
run: mvn install -f pom.xml

- name: Package Maven project
run: mvn package -f pom.xml

- name: Download latest cache
run: python scripts/cache.py

- name: Generate maps
run: java -jar ./osrs-wiki-maps/target/osrs-wiki-maps-*-SNAPSHOT-shaded.jar

- name: Stitch maps
run: python scripts/stitch.py

- name: Upload Output
uses: actions/upload-artifact@v3
with:
name: out-${{ github.run_id }}-${{ github.run_attempt }}
path: out/

0 comments on commit 57ae2f1

Please sign in to comment.