-
Notifications
You must be signed in to change notification settings - Fork 81
79 lines (73 loc) · 1.72 KB
/
Copy pathrelease.yml
File metadata and controls
79 lines (73 loc) · 1.72 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
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
pwd
find . -name '*.gz'
find ../.. -name '*.gz'
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: prism/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 }}
path: test-dir
- name: Verify download
run: ls -R test-dir/
- name: Build and run smoke test
shell: bash
working-directory: ./test-dir
run: |
tar -xzf p*.tar.gz
cd prism-*
./install.sh
etc/tests/run.sh