Skip to content

use new path apis

use new path apis #166

Workflow file for this run

name: build
on: [ push ]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Install Packages
run: sudo apt-get install -y advancecomp
# cache local gradle files, global ones will be taken care of by the setup-gradle action
- uses: actions/cache@v4
with:
path: |
**/.gradle/
**/build/
key: ${{ runner.os }}-gradlelocal-${{ github.ref }}
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 21
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
with:
cache-encryption-key: ${{ secrets.GRADLE_ENCRYPTION_KEY }}
- name: :build
run: ./gradlew build --stacktrace --no-daemon
- name: Upload artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: zume
path: |
**/build/libs/zume*.jar
build/libs/*mappings.txt
- name: :smokeTest
id: smokeTest
uses: coactions/setup-xvfb@v1
with:
run: ./gradlew :smokeTest --no-daemon
- name: test
if: always()
run: echo ${{ steps.smokeTest.outcome }}
- name: Upload test results
if: steps.smokeTest.outcome != 'success'
uses: actions/upload-artifact@v4
with:
name: smokeTest
path: build/smokeTest/**/logs/**