-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (56 loc) · 1.48 KB
/
release.yaml
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
name: Build and Release Tahini Binaries
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up GraalVM
uses: graalvm/setup-graalvm@v1
with:
version: 'latest'
java-version: '21'
- name: Build jar with Gradle
run: |
cd tahini
./gradlew build
- name: Compile native image
run: |
cd tahini
native-image -jar app/build/libs/app.jar tahini
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: tahini-${{ matrix.os }}
path: tahini*
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: List files in workspace
run: |
echo "Current directory: $(pwd)"
echo "Listing files in current directory:"
ls -al
if [ -d "tahini" ]; then
echo "Listing files in /tahini directory:"
ls -al tahini
else
echo "/tahini directory does not exist."
fi
- name: Create Release
uses: softprops/action-gh-release@v1
with:
files: |
tahini/tahini-ubuntu-latest
tahini/tahini-macos-latest
tahini/tahini-windows-latest.exe
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}