Skip to content

Bump actions/cache from 3 to 4 #606

Bump actions/cache from 3 to 4

Bump actions/cache from 3 to 4 #606

Workflow file for this run

name: pr-build
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: install libhyperic-sigar
run: sudo apt-get install libhyperic-sigar-java
- name: fetch head
uses: actions/checkout@v3
- name: setup jdk
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
settings-path: ${{ github.workspace }}/.mvn/
- name: cache .m2
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: maven build
run: ./mvnw -B -U verify -s $GITHUB_WORKSPACE/.mvn/settings.xml
env:
GITHUB_TOKEN: ${{secrets.serverpass}}
- uses: actions/[email protected]
with:
name: todos-build-artifacts
path: ${{ github.workspace }}/**/target/**