Skip to content

fix unsupport riscv64 #17

fix unsupport riscv64

fix unsupport riscv64 #17

Workflow file for this run

# Copyright (c) 2022 Institute of Software Chinese Academy of Sciences (ISCAS)
#
# Licensed 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.
## Ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven
name: build and test
on:
push:
paths-ignore:
- '**/*.md'
- 'docs/**'
- '**/images/**'
branches:
- dev
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
branches:
- dev
paths-ignore:
- '**/*.md'
- 'docs/**'
- '**/images/**'
workflow_dispatch:
env:
MANDREL_VERSION: "22.3.0.1-Final"
JAVA_VERSION: '17'
jobs:
jvm-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Maven+JDK-${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
java-version: ${{ env.JAVA_VERSION }}
distribution: 'temurin'
cache: maven
- name: Build and Verify for JVM
run: |
./mvnw -B clean verify \
-Dquarkus.http.host=0.0.0.0 \
-Dmaven.compiler.release=${{ env.JAVA_VERSION }}
native-build-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Cache and restore Mandrel distro
id: check-mandrel-cache
uses: actions/cache@v3
with:
path: mandrel-${{ env.MANDREL_VERSION }}-${{ env.JAVA_VERSION }}.tar.gz
key: mandrel-distro-${{ env.MANDREL_VERSION }}-${{ env.JAVA_VERSION }}
- name: Download Mandrel
if: steps.check-mandrel-cache.outputs.cache-hit != 'true'
run: |
jdk_url="https://github.com/graalvm/mandrel/releases/download/mandrel-${MANDREL_VERSION}/mandrel-java${JAVA_VERSION}-linux-amd64-${MANDREL_VERSION}.tar.gz"
wget -q -O mandrel-${{ env.MANDREL_VERSION }}-${{ env.JAVA_VERSION }}.tar.gz $jdk_url
- name: Setup Maven+MandrelJDK-${{ env.JAVA_VERSION }}
uses: actions/setup-java@v3
with:
distribution: 'jdkfile'
jdkFile: mandrel-${{ env.MANDREL_VERSION }}-${{ env.JAVA_VERSION }}.tar.gz
java-version: ${{ env.JAVA_VERSION }}
architecture: x64
cache: maven
- name: Build and Verify for Native
run: |
./mvnw -B clean verify -Pnative \
-Dquarkus.http.host=0.0.0.0 \
-Dmaven.compiler.release=${{ env.JAVA_VERSION }}