Skip to content

build macos arm jni lib on github CI #23

build macos arm jni lib on github CI

build macos arm jni lib on github CI #23

Workflow file for this run

name: linux JNI Lib rs
on:
push:
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
pull_request:
paths-ignore:
- 'README.md'
- 'CHANGELOG.md'
workflow_dispatch:
inputs:
version:
description: dummy
default: dummy
jobs:
build-linux-nightly-artifact:
name: Nightly Artifact linux Build
runs-on: ubuntu-20.04
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: install deps
run: |
sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
ca-certificates \
openjdk-17-jdk \
openjdk-17-jdk-headless \
libnotify-dev \
curl \
coreutils autoconf libtool pkg-config \
faketime hostname
- name: install rust
run: |
curl https://sh.rustup.rs -sSf > a.sh
bash a.sh -y
- name: build jni lib
run: |
ls -al
id
pwd
hostname
domainname
sudo hostname "buildhost"
hostname
domainname
./ci_scripts/java_jni_lib_linux_rs.sh
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: libjni_notifications_rs.so
path: libjni_notifications_rs.so
- name: Upload to nightly release
uses: ncipollo/release-action@v1
if: github.ref == 'refs/heads/master'
with:
allowUpdates: true
tag: nightly
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
prerelease: true
replacesArtifacts: true
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "libjni_notifications_rs.so"