You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by sr...@apache.org on 2022/03/08 14:17:20 UTC
[plc4x] branch develop updated: chore(build): add manual workflow to update maven caches
This is an automated email from the ASF dual-hosted git repository.
sruehl pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git
The following commit(s) were added to refs/heads/develop by this push:
new a04314a chore(build): add manual workflow to update maven caches
a04314a is described below
commit a04314a7b4e38499ca0c32e3d19f6e1d15c43cdb
Author: Sebastian Rühl <sr...@apache.org>
AuthorDate: Tue Mar 8 15:16:06 2022 +0100
chore(build): add manual workflow to update maven caches
---
.github/workflows/refresh-caches.yml | 66 ++++++++++++++++++++++++++++++++++++
1 file changed, 66 insertions(+)
diff --git a/.github/workflows/refresh-caches.yml b/.github/workflows/refresh-caches.yml
new file mode 100644
index 0000000..b1562ae
--- /dev/null
+++ b/.github/workflows/refresh-caches.yml
@@ -0,0 +1,66 @@
+# ----------------------------------------------------------------------------
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+# ----------------------------------------------------------------------------
+name: "Refresh cashes"
+
+on: workflow_dispatch
+
+jobs:
+ test:
+ strategy:
+ matrix:
+ # 8 not anymore supported for building
+ java: [ 11, 17 ]
+ os: [ ubuntu-latest, macos-latest, windows-latest ]
+ fail-fast: false
+ runs-on: ${{ matrix.os }}
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+
+ - name: Setup Java
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'adopt'
+ java-package: jdk
+ java-version: ${{ matrix.java }}
+
+ - name: Cache local Maven repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.m2/repository
+ key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
+ restore-keys: |
+ ${{ runner.os }}-maven-
+
+ - name: Calculate platform suffix
+ id: platform_suffix
+ uses: actions/github-script@v5.0.0
+ env:
+ OS: ${{ matrix.os }}
+ with:
+ script: |
+ const { OS } = process.env
+ if (OS.includes("windows")) {
+ core.setOutput('platform_suffix', `.cmd`)
+ } else {
+ core.setOutput('platform_suffix', ``)
+ }
+
+ - name: Run mvnw
+ run: ./mvnw${{ steps.platform_suffix.outputs.platform_suffix }} -U -T 1C -B -P'with-sandbox,with-c,with-go' verify