SAFECOMP 2024 Release #17
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: RITE Release Workflow | |
# Runs whenever a release is published on GitHub | |
on: | |
release: | |
types: [ published ] | |
# Runs release workflow and uploads build artifacts: | |
# - Builds RITE source and runs unit tests | |
# - Uploads RITE zips to release page | |
jobs: | |
release: | |
container: | |
image: maven:${{ matrix.maven-version }} | |
volumes: | |
- /usr/bin/docker:/usr/bin/docker | |
- /var/run/docker.sock:/var/run/docker.sock | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
distribution: [ temurin ] | |
java-version: [ 17 ] | |
maven-version: [ 3.9.5 ] | |
os: [ ubuntu-22.04 ] | |
steps: | |
- name: Check out RITE source | |
uses: actions/[email protected] | |
- name: Set up Java and Maven | |
uses: actions/[email protected] | |
with: | |
cache: maven | |
distribution: ${{ matrix.distribution }} | |
java-version: ${{ matrix.java-version }} | |
- name: Build RITE source | |
run: mvn -B package -f tools/rack/pom.xml -Dtycho.localArtifacts=ignore | |
- name: Rename RITE zips | |
run: | | |
cd tools/rack/rack.product/target/products | |
mv *-linux.gtk.x86_64.zip RITE-linux.gtk.x86_64-${{ github.event.release.tag_name }}.zip | |
mv *-macosx.cocoa.x86_64.zip RITE-macosx.cocoa.x86_64-${{ github.event.release.tag_name }}.zip | |
mv *-win32.win32.x86_64.zip RITE-win32.win32.x86_64-${{ github.event.release.tag_name }}.zip | |
- name: Upload RITE zips to release page | |
uses: softprops/[email protected] | |
with: | |
files: tools/rack/rack.product/target/products/*.zip |