Skip to content

Commit

Permalink
CI: update to current versions and use builtin caches
Browse files Browse the repository at this point in the history
See #46
  • Loading branch information
bertfrees authored Mar 22, 2024
2 parents 9a6a7e0 + 8c65ea3 commit 5e7e803
Showing 1 changed file with 5 additions and 20 deletions.
25 changes: 5 additions & 20 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,21 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5
with:
go-version: '^1.21.3'
- name: Set up Java
uses: actions/setup-java@v2
uses: actions/setup-java@v4
with:
java-version: '8'
distribution: 'adopt'
- name: Cache downloaded Go dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Cache downloaded Java dependencies
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
cache: 'maven'
- name: Build
run: mvn --batch-mode clean verify
- name: Upload the artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: "cli"
path: target/*.zip

0 comments on commit 5e7e803

Please sign in to comment.