41 lines
1.3 KiB
YAML
41 lines
1.3 KiB
YAML
name: DuneRealms Kit Delivery CI
|
|
on:
|
|
push:
|
|
branches: [main, dev/kit-atelier-v3]
|
|
paths:
|
|
- 'DuneKits/**'
|
|
- 'network/server-control/kit*'
|
|
- 'network/server-control/player_kits.py'
|
|
- '.forgejo/workflows/kit-delivery.yml'
|
|
workflow_dispatch:
|
|
jobs:
|
|
kits:
|
|
runs-on: dune-ci
|
|
steps:
|
|
- name: Checkout
|
|
shell: bash
|
|
env:
|
|
REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
git init .
|
|
git -c http.extraheader="AUTHORIZATION: basic $(printf 'x-access-token:%s' "$REPO_TOKEN" | base64 -w0)" fetch --depth=1 https://www.dunerealms.com/git/unimatrix/MC.git "$GITHUB_SHA"
|
|
git checkout --detach FETCH_HEAD
|
|
- name: Install Java 21
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: temurin
|
|
java-version: '21'
|
|
- name: Install Gradle
|
|
uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
gradle-version: '9.2.1'
|
|
- name: Verify bridge and build native kit items
|
|
run: |
|
|
python3 -m unittest discover -s network/server-control -p 'test_*.py' -v
|
|
gradle --no-daemon -p DuneKits test jar
|
|
- name: Upload verified kit plugin
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: DuneKits
|
|
path: DuneKits/build/libs/*.jar
|
|
if-no-files-found: error
|

Staff