Skip to content

Build

Build #102

Workflow file for this run

name: Build
on:
push:
branches: [ gh-actions ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
path: actions
- uses: actions/checkout@v3
with:
ref: main
path: chariot
- name: Download OpenJDK 21
run: |
download_url="https://download.java.net/java/GA/jdk21.0.1/415e3f918a1f4062a0074a2794853d0d/12/GPL/openjdk-21.0.1_linux-x64_bin.tar.gz"
wget -O $RUNNER_TEMP/java_package.tar.gz $download_url
- uses: actions/setup-java@v3
with:
distribution: 'jdkfile'
jdkFile: ${{ runner.temp }}/java_package.tar.gz
java-version: '21'
architecture: x64
- name: Check java version
run: java -Xinternalversion
- name: Copy pom template
run: cp actions/pom.template.xml .
# Fetch tags to be able to figure out the version number
- name: Fetch tags
run: cd chariot && git fetch --tags
- name: Run the build.sh script
run: actions/build.sh
- name: checksum
run: sha256sum bundle/*
# chariot-VERSION.jar
# chariot-VERSION-sources.jar
# chariot-VERSION-javadoc.jar
# chariot-VERSION.pom
- uses: actions/upload-artifact@v3
with:
name: bundle
path: bundle/*