GEODE-10439: Upgrade github actions to newer versions
* upgraded setup java and checkout actions to latest versions
* limit to run on latest OS versions
* uses liberica jdk 8
diff --git a/.github/workflows/mvn-package-all-os.yml b/.github/workflows/mvn-package-all-os.yml
index 912b847..cb06d08 100644
--- a/.github/workflows/mvn-package-all-os.yml
+++ b/.github/workflows/mvn-package-all-os.yml
@@ -10,7 +10,9 @@
on:
push:
+ branches: [ "master" ]
pull_request:
+ branches: [ "master" ]
jobs:
build:
@@ -18,12 +20,15 @@
strategy:
fail-fast: false
matrix:
- os: [ubuntu-16.04, ubuntu-latest, ubuntu-18.04, macos-latest, macos-11.0, windows-2016, windows-latest]
+ os: [ubuntu-latest, macos-latest, windows-latest]
+ distribution: [ 'liberica' ]
+ java: [ '8' ]
steps:
- - uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- name: Set up JDK 1.8
- uses: actions/setup-java@v1
+ uses: actions/setup-java@v3
with:
- java-version: 1.8
+ distribution: ${{ matrix.distribution }}
+ java-version: ${{ matrix.java }}
- name: Build with Maven
run: mvn -B package --file pom.xml