mirror of
https://github.com/dromara/hertzbeat.git
synced 2026-09-25 00:59:01 +00:00
43 lines
1.5 KiB
YAML
43 lines
1.5 KiB
YAML
# 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: setup-deps
|
|
description: Install host system dependencies (with mvnd)
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- name: Set up JDK 17
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: "zulu"
|
|
java-version: 17
|
|
|
|
- name: Install mvnd
|
|
shell: bash
|
|
run: |
|
|
MVND_VERSION=2.0.0-rc-3
|
|
curl -sL https://dlcdn.apache.org/maven/mvnd/${MVND_VERSION}/maven-mvnd-${MVND_VERSION}-linux-amd64.zip -o mvnd.zip
|
|
unzip -q mvnd.zip
|
|
mkdir -p $HOME/.local
|
|
mv maven-mvnd-${MVND_VERSION}-linux-amd64 $HOME/.local/mvnd
|
|
echo "$HOME/.local/mvnd/bin" >> $GITHUB_PATH
|
|
echo "MVND_HOME=$HOME/.local/mvnd" >> $GITHUB_ENV
|
|
|
|
- name: Verify mvnd installation
|
|
shell: bash
|
|
run: mvnd --version |