-
Notifications
You must be signed in to change notification settings - Fork 0
77 lines (74 loc) · 2.22 KB
/
publish.yml
File metadata and controls
77 lines (74 loc) · 2.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: Publish artfiacts to Maven Central
on:
workflow_dispatch:
jobs:
build-native:
runs-on: ${{ matrix.os }}
env:
target-path: ${{ matrix.platform }}-${{ matrix.arch }}
strategy:
matrix:
platform: [linux, win32, darwin]
arch: [x86, x86-64, aarch64]
exclude:
- platform: darwin
arch: x86
- platform: win32
arch: aarch64
include:
- platform: darwin
os: macos-14
compiled-path: supranational/blst/Mac
- platform: linux
os: ubuntu-22.04
extra-packages: gcc-7 g++-7
compiled-path: supranational/blst/Linux
- platform: linux
arch: aarch64
extra-packages: gcc-8-aarch64-linux-gnu g++-8-aarch64-linux-gnu
compiled-path: supranational/blst/Linux
- platform: linux
arch: x86
extra-packages: gcc-7-multilib g++-7-multilib
compiled-path: supranational/blst/Linux
- platform: win32
os: ubuntu-22.04
extra-packages: mingw-w64
compiled-path: supranational/blst/Linux
steps:
- uses: actions/checkout@v4
with:
repository: supranational/blst
ref: v0.3.15
- name: Install build tools
if: ${{ matrix.extra-packages }}
run: |
sudo apt-get update
sudo apt-get install -y ${{ matrix.extra-packages }}
- name: Build native image
run: |
cd blst/bindings/java
./build.sh
- name: Upload result
uses: actions/upload-artifact@v4
with:
name: blst-${{ env.target-path }}.zip
path: native/build/target/*
publish:
runs-on: ubuntu-latest
needs: build-native
steps:
- uses: actions/checkout@v4
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '11'
cache: 'maven'
gpg-private-key: ${{ secrets.OSSRH_GPG_KEY }}
gpg-passphrase: ${{ secrets.OSSRH_GPG_PASSPHRASE }}
- run: |
mkdir -p java/src/main/resources
- uses: actions/download-artifact@v4
- run: |
find .
mvn package