Skip to content

Commit b5865a3

Browse files
committed
release build
1 parent ee9e06a commit b5865a3

2 files changed

Lines changed: 61 additions & 2 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
name: release
2+
3+
on:
4+
push:
5+
tags:
6+
- '**'
7+
branches-ignore:
8+
- '**'
9+
10+
jobs:
11+
build_libraries:
12+
runs-on: ${{ matrix.os.runner }}
13+
strategy:
14+
matrix:
15+
os:
16+
- runner: ubuntu-22.04
17+
type: linux
18+
platform: linux-amd64
19+
- runner: ubuntu-22.04-arm
20+
type: linux
21+
platform: linux-arm64
22+
- runner: macos-latest
23+
type: macos
24+
platform: darwin-arm64
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: actions/setup-java@v4
29+
with:
30+
java-version: "17"
31+
distribution: "temurin"
32+
cache: gradle
33+
34+
- if: ${{ matrix.os.platform != 'linux-amd64' }}
35+
name: java
36+
run: |
37+
./gradlew publish -Prelease=true -PdeployUser=${{ secrets.deploy_user }} -PdeployPassword=${{ secrets.deploy_password }}
38+
39+
- if: ${{ matrix.os.platform == 'linux-amd64' }}
40+
name: java rhel9
41+
uses: kohlerdominik/docker-run-action@v2.0.0
42+
with:
43+
image: almalinux:9
44+
workdir: /workspace
45+
volumes: |
46+
${{ github.workspace }}:/workspace
47+
environment: |
48+
JAVA_HOME=/usr
49+
run: |
50+
dnf update -y
51+
dnf install -y java-17-openjdk-devel g++ cmake
52+
pwd
53+
ls -l
54+
./gradlew publish -Prelease=true -PdeployUser=${{ secrets.deploy_user }} -PdeployPassword=${{ secrets.deploy_password }}
Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1-
name: publish
1+
name: snapshot
22

3-
on: [push]
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
tags-ignore:
8+
- '**'
49

510
jobs:
611
build_libraries:

0 commit comments

Comments
 (0)