mirror of
https://github.com/Eyre-S/Coeur-Morny-Cono.git
synced 2025-04-29 09:32:04 +08:00
commit 3b24ff6d15aa3671176629ca86ef1c34cd56d6cd Author: Eyre_S <sukazyo@outlook.com> Date: Thu Feb 27 19:04:30 2025 +0800 fix assembly run error commit 5dbad550ba3bc09c1c8d7ce4863d8d2dabf2c56d Author: Eyre_S <sukazyo@outlook.com> Date: Thu Feb 27 19:01:38 2025 +0800 fix artifact conflict commit 377140f225803138f404b89d77f0becdb2c6e912 Author: Eyre_S <sukazyo@outlook.com> Date: Thu Feb 27 18:56:08 2025 +0800 separate unit tests, remove unnecessary compile, add names
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: assembly-run.yml
|
|
on: [workflow_call]
|
|
jobs:
|
|
generate-assembly:
|
|
name: "Build assembly jar"
|
|
uses: ./.github/workflows/assembly-generate.yml
|
|
run-assembly:
|
|
name: "Test run assembly jar"
|
|
needs: [generate-assembly]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Setup assembly jar from artifacts"
|
|
uses: actions/download-artifact@v4
|
|
with:
|
|
name: 'assembly'
|
|
path: ./assembles/
|
|
- name: "Setup Java 21"
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
- name: "Run assembly jar"
|
|
id: assembly-run
|
|
shell: bash
|
|
run: |
|
|
|
|
exec 5>&1
|
|
outputs=$(java -jar ./assembles/*.jar -q -v | tee >(cat - >&5))
|
|
|
|
echo '# Assembly Jar Runs' >> $GITHUB_STEP_SUMMARY
|
|
echo '' >> $GITHUB_STEP_SUMMARY
|
|
echo 'The execution result while running assembly jar:' >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|
|
echo "$outputs" >> $GITHUB_STEP_SUMMARY
|
|
echo '```' >> $GITHUB_STEP_SUMMARY
|