Skip to content

ci: fix os arch for bin #39

ci: fix os arch for bin

ci: fix os arch for bin #39

Workflow file for this run

name: CI
on:
push:
branches-ignore:
- main
workflow_call:
jobs:
build:
name: Build
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Output SHA
uses: benjlevesque/short-sha@95aa1081125b46e95966cef05d7ef9b0e7e28557
id: short-sha
- name: Set plugin ver with SHA commit
run: |
sed -ri "s/^(versionSuffix=).*/\1sha-${SHA}/" gradle.properties || :
env:
SHA: ${{ steps.short-sha.outputs.sha }}
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Build
run: ./gradlew jar
- name: Upload a jar
uses: actions/upload-artifact@v4
with:
name: artifact
path: ./build/libs/
test:
name: Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: temurin
cache: gradle
- name: Test
run: ./gradlew test