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
37 lines
1.2 KiB
YAML
37 lines
1.2 KiB
YAML
name: "Build"
|
|
run-name: "Build projects to ensure compiling is successful"
|
|
on: [workflow_call]
|
|
jobs:
|
|
compile:
|
|
name: "Compile Project"
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: "Check if there's already have cache"
|
|
id: check-cache
|
|
uses: actions/cache/restore@v4
|
|
with:
|
|
path: "./"
|
|
key: ${{ runner.os }}-build-${{ github.sha }}
|
|
lookup-only: 'true'
|
|
- if: steps.check-cache.outputs.cache-hit != 'true'
|
|
uses: actions/checkout@v4
|
|
- if: steps.check-cache.outputs.cache-hit != 'true'
|
|
name: "Setup Java 21"
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
cache: sbt
|
|
- if: steps.check-cache.outputs.cache-hit != 'true'
|
|
name: "Setup sbt"
|
|
uses: sbt/setup-sbt@v1
|
|
- if: steps.check-cache.outputs.cache-hit != 'true'
|
|
name: "Compile Project"
|
|
run: sbt compile
|
|
- if: steps.check-cache.outputs.cache-hit != 'true'
|
|
name: "Cache the built project"
|
|
uses: actions/cache/save@v4
|
|
with:
|
|
path: "./"
|
|
key: ${{ runner.os }}-build-${{ github.sha }}
|