Skip to content

Handle missing endpoint or service gracefully #72

Handle missing endpoint or service gracefully

Handle missing endpoint or service gracefully #72

Workflow file for this run

name: Release
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
matrix:
include:
- arch: linux-amd64
runs-on: ubuntu-latest
- arch: linux-arm64
runs-on: arm-c8
- arch: macos-amd64
runs-on: macos-latest
- arch: macos-arm64
runs-on: macos-latest-xlarge
env:
GITHUB_USERNAME: ${{ secrets.ORG_GITHUB_ACTOR }}
GITHUB_TOKEN: ${{ secrets.ORG_GITHUB_TOKEN }}
runs-on: ${{ matrix.runs-on }}
steps:
- name: Checkout git repo
uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: '22'
distribution: 'graalvm'
github-token: ${{ secrets.GITHUB_TOKEN }}
- uses: extractions/setup-just@v2
- uses: DeLaGuardo/[email protected]
with:
cli: latest
- name: Configure Auth
run: |
mkdir -p ~/.m2/
cp ./build/settings.xml ~/.m2/settings.xml
- name: Build Native Image
run: just build-native
- name: Pack binary
run: |
tar -czf kl-${{ matrix.arch }}.tar.gz -C ./target kl
- uses: actions/upload-artifact@v3
with:
name: binaries
if-no-files-found: error
path: kl-${{ matrix.arch }}.tar.gz
release:
runs-on: ubuntu-latest
needs: [build]
if: ${{ github.ref_type == 'tag' && startsWith(github.ref_name, 'v') }}
steps:
- uses: actions/checkout@v4
- name: Download Binary Artifacts
uses: actions/download-artifact@v3
with:
name: binaries
path: bin
- name: Calculate checksums
run: |
for file in bin/*; do
shasum -a 256 "$file" >> checksums.txt
done
mv checksums.txt bin/checksums.txt
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
bin/*