mirror of
https://github.com/fluencelabs/aqua.git
synced 2024-12-04 22:50:18 +00:00
148cb0004e
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
name: "Publish binary aqua"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
runs-on:
|
|
type: string
|
|
required: true
|
|
arch:
|
|
type: string
|
|
required: true
|
|
os:
|
|
type: string
|
|
required: true
|
|
static:
|
|
type: boolean
|
|
required: true
|
|
workflow_call:
|
|
inputs:
|
|
runs-on:
|
|
type: string
|
|
required: true
|
|
arch:
|
|
type: string
|
|
required: true
|
|
os:
|
|
type: string
|
|
required: true
|
|
static:
|
|
type: boolean
|
|
required: true
|
|
|
|
jobs:
|
|
build:
|
|
name: "Publish aqua-native"
|
|
runs-on: ${{ inputs.runs-on }}
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- uses: graalvm/setup-graalvm@v1
|
|
with:
|
|
version: '22.3.1'
|
|
java-version: '17'
|
|
set-java-home: true
|
|
components: 'native-image'
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- uses: coursier/cache-action@v6
|
|
|
|
- uses: coursier/setup-action@v1
|
|
with:
|
|
apps: sbt
|
|
|
|
- name: build
|
|
run: sbt "cli/GraalVMNativeImage/packageBin"
|
|
env:
|
|
COMPILE_STATIC: ${{ inputs.static }}
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: aqua-${{ inputs.os }}-${{ inputs.arch }}
|
|
path: cli/cli/.jvm/target/graalvm-native-image/cli
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
with:
|
|
name: aqua-${{ inputs.os }}-${{ inputs.arch }}
|
|
path: cli/cli/.jvm/target/graalvm-native-image/cli
|