Skip to content

Publish

Publish #14

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
tag:
description: The tag to publish
required: true
push:
tags: [ 'v*.*.*' ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
target:
- aarch64-linux-android # 64-bit ARM
#- armv7-linux-androideabi # 32-bit ARM
#- i686-linux-android # 32-bit x86
#- x86_64-linux-android # 64-bit x86
#- arm-linux-androideabi # 32-bit ARM (older ABI)
#- thumbv7neon-linux-androideabi # 32-bit ARM with NEON
name: Build Release - ${{ matrix.target }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
ref: ${{ github.event.inputs.tag || github.ref }}
- name: Set version variable
run: |
version="${{ github.event.inputs.tag || github.ref }}"
version=${version#v}
echo "VERSION=$version" >> "$GITHUB_ENV"
echo "$version"
- name: Set arch variable
run: |
arch_alias() {
case $1 in
"aarch64-linux-android")
echo "aarch64"
;;
"i686-linux-android")
echo "i686"
;;
"x86_64-linux-android")
echo "x86_64"
;;
"arm-linux-androideabi")
echo "arm"
;;
*)
echo "Invalid architecture name"
;;
esac
}
arch=$(arch_alias ${{ matrix.target }})
echo "ARCH=$arch" >> "$GITHUB_ENV"
echo "$arch"
- name: Debug Environment Variables
run: |
echo "Version: $VERSION"
echo "Arch: $ARCH"