Skip to content

raise version to 0.2.0 #22

raise version to 0.2.0

raise version to 0.2.0 #22

Workflow file for this run

on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
build:
strategy:
matrix:
config:
- name: mobdap.jar
os: ubuntu-24.04
profile: jar
- name: mobdap-linux-amd64
os: ubuntu-24.04
profile: unix
- name: mobdap-linux-arm64
os: ubuntu-24.04-arm
profile: unix
- name: mobdap-macos-amd64
os: macos-13
profile: unix
- name: mobdap-macos-arm64
os: macos-latest
profile: unix
- name: mobdap-windows-amd64
os: windows-latest
profile: windows
runs-on: ${{ matrix.config.os }}
steps:
- uses: actions/checkout@v4
- name: setup graalvm
uses: graalvm/setup-graalvm@v1
with:
distribution: 'graalvm-community'
java-version: '24'
- name: setup clojure
uses: DeLaGuardo/setup-clojure@13.4
if: matrix.config.profile != 'windows'
with:
lein: 2.11.2
- name: build ${{ matrix.config.name }}
if: matrix.config.profile == 'jar'
run: |
VERSION=${GITHUB_REF_NAME#v}
lein set-version "$VERSION"
lein uberjar
- name: build ${{ matrix.config.name }}
if: matrix.config.profile == 'unix'
run: |
VERSION=${GITHUB_REF_NAME#v}
lein set-version "$VERSION"
lein native-image
- name: build ${{ matrix.config.name }}
if: matrix.config.profile == 'windows'
run: |
curl https://raw.githubusercontent.com/technomancy/leiningen/stable/bin/lein.bat -O lein.bat
.\lein.bat self-install
$GITHUB_REF_NAME = $env:GITHUB_REF_NAME
$VERSION = $GITHUB_REF_NAME -replace '^v', ''
.\lein.bat set-version "$VERSION"
.\lein.bat native-image
- name: move jar ${{ matrix.config.name }}
if: matrix.config.profile == 'jar'
run: |
mv target/uberjar/mobdap-*-standalone.jar ${{ matrix.config.name }}
- name: "upload jar: ${{ matrix.config.name }}"
if: matrix.config.profile == 'jar'
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.config.name }}
- name: "compress unix: ${{ matrix.config.name }}"
if: matrix.config.profile == 'unix'
run: |
mv target/native-image/mobdap-* mobdap
tar -czvf ${{ matrix.config.name }}.tar.gz mobdap
- name: "upload unix: ${{ matrix.config.name }}"
if: matrix.config.profile == 'unix'
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.config.name }}.tar.gz
- name: "compress windows: ${{ matrix.config.name }}"
if: matrix.config.profile == 'windows'
run: |
Move-Item -Path target/native-image/mobdap-*.exe -Destination mobdap.exe
Compress-Archive -Path mobdap.exe -Destination ${{ matrix.config.name }}.zip
- name: "upload windows: ${{ matrix.config.name }}"
if: matrix.config.profile == 'windows'
uses: softprops/action-gh-release@v2
with:
files: ${{ matrix.config.name }}.zip