-
Notifications
You must be signed in to change notification settings - Fork 6
53 lines (41 loc) · 1.17 KB
/
build.yml
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
name: Build
on:
push:
branches:
- gh-actions
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
path: actions
- uses: actions/checkout@v4
with:
ref: main
path: chariot
- name: Download OpenJDK 23
run: |
download_url="https://download.java.net/java/GA/jdk23.0.1/c28985cbf10d4e648e4004050f8781aa/11/GPL/openjdk-23.0.1_linux-x64_bin.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- uses: actions/setup-java@v4
with:
distribution: 'jdkfile'
jdkFile: ${{ runner.temp }}/java_package.tar.gz
java-version: '23'
architecture: x64
- name: Check java version
run: java -Xinternalversion
- name: Copy pom template
run: cp actions/pom.template.xml .
- name: Fetch tags
run: cd chariot && git fetch --tags
- name: Run the build.sh script
run: actions/build.sh
- name: checksum
run: sha256sum bundle/*
- uses: actions/upload-artifact@v4
with:
name: jars
path: bundle/*