-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
48 lines (40 loc) · 1.31 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
name: Build
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up JDK 17
uses: actions/setup-java@v5
with:
distribution: temurin
java-version: "17"
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v6
- name: Extract WSE libs from wowza-streaming-engine image
run: |
mkdir -p wse-lib
docker run --rm \
-v "$(pwd)/wse-lib:/output" \
--user "$(id -u):$(id -g)" \
--entrypoint sh \
wowza/wowza-streaming-engine:latest-slim \
-c 'cp /usr/local/WowzaStreamingEngine/lib.default/*.jar /output/'
echo "Extracted $(ls -1 wse-lib/*.jar | wc -l | xargs) WSE JAR files"
- name: Build & test
run: ./gradlew build -PwseLibDir=./wse-lib --no-daemon
- name: Read version
id: version
run: echo "version=$(cat VERSION | tr -d '[:space:]')" >> "$GITHUB_OUTPUT"
- name: Upload plugin JARs
uses: actions/upload-artifact@v7
with:
name: plugin-jars-${{ steps.version.outputs.version }}-${{ github.sha }}
path: build/libs/*.jar
retention-days: 7
if-no-files-found: error