Skip to content

Commit

Permalink
Update actions to latest versions
Browse files Browse the repository at this point in the history
  • Loading branch information
tristantarrant authored and ryanemerson committed Nov 6, 2023
1 parent ec0d42f commit e67067d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/pull_requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,41 +34,41 @@ jobs:

- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
version: '22.3.2'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout PR Branch
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout tools repo
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: infinispan/infinispan
path: infinispan
ref: 14.0.x

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Build Infinispan SNAPSHOT
run: mvn install -s maven-settings.xml -am -pl cli -DskipTests
run: ./mvnw install -s maven-settings.xml -am -pl cli -DskipTests
working-directory: infinispan

- if: ${{ matrix.os == 'windows-2022' }}
name: Build native executable
run: |
call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" x86_amd64
mvn.cmd -V install -s maven-settings.xml -Pdistribution -Pnative -Pwindows -am -pl poms/bom,cli
mvnw.cmd -V install -s maven-settings.xml -Pdistribution -Pnative -Pwindows -am -pl poms/bom,cli
shell: cmd

- if: ${{ matrix.os != 'windows-2022' }}
name: Build native executable
run: mvn -V install -s maven-settings.xml -Pdistribution -Pnative -am -pl poms/bom,cli
run: ./mvnw -V install -s maven-settings.xml -Pdistribution -Pnative -am -pl poms/bom,cli

10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:

steps:
- name: Checkout Source
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.branch }}

- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
Expand All @@ -46,7 +46,7 @@ jobs:
- uses: graalvm/setup-graalvm@v1
with:
version: '22.3.0'
version: '22.3.2'
java-version: '17'
components: 'native-image'
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Build release
run: |
git checkout ${{ github.event.inputs.releaseVersion }}
mvn package -s maven-settings.xml -DskipTests=true -Prelease
./mvnw package -s maven-settings.xml -DskipTests=true -Prelease
git checkout ${{ github.event.inputs.branch }}
- name: Push changes
Expand Down Expand Up @@ -113,7 +113,7 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Publish to OSSRH
run: mvn -B deploy -Prelease -Pcommunity-release -DskipTests -Dmaven.javadoc.skip=true -P \!native -pl \!integration-tests/server
run: ./mvnw -B deploy -Prelease -Pcommunity-release -DskipTests -Dmaven.javadoc.skip=true -P \!native -pl \!integration-tests/server
env:
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
MAVEN_PASSWORD: ${{ secrets.OSSRH_PASSWORD }}
Expand Down

0 comments on commit e67067d

Please sign in to comment.