Skip to content

Update and simplify Github Action for regression testing. #1

Update and simplify Github Action for regression testing.

Update and simplify Github Action for regression testing. #1

Workflow file for this run

name: Release
on:
push:
# Trigger on version tags: v4.10 etc.
tags:
- 'v*'
# TEMP
pull_request:
branches: [ master ]
# Allows manual triggering
workflow_dispatch:
inputs:
do_publish:
description: 'Actually publish to GitHub Releases?'
required: true
type: boolean
default: false
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: prism-linux64
- os: macos-latest
artifact_name: prism-macos64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Build
shell: bash
working-directory: ./prism
run: |
make release
make unittests
make tests
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: release/*.tar.gz
test_release:
needs: build
strategy:
matrix:
include:
- os: ubuntu-latest
artifact: prism-linux64
- os: macos-latest
artifact: prism-macos64
runs-on: ${{ matrix.os }}
steps:
- name: Download Artifact
uses: actions/download-artifact@v4
with:
name: ${{ matrix.artifact }}
- name: Build and run smoke test
shell: bash
run: |
tar -xzf release/*.tar.gz
cd prism-*
./install.sh
etc/tests/run.sh