Skip to content

Commit

Permalink
Include Windows natives in jar (#563)
Browse files Browse the repository at this point in the history
* Include Windows natives in jar

* Update jitsi-srtp and enable PR builds

* Create multiplatform jar on PR
  • Loading branch information
ibauersachs authored Jun 5, 2022
1 parent 983122e commit 77564dc
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/maven-and-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- master
#pull_request:
# branches:
# - master
pull_request:
branches:
- master

env:
# Java version to use for the release
Expand Down Expand Up @@ -39,7 +39,7 @@ jobs:
# don't use the setup-java cache option as this only caches what is
# necessary for the version, not the other jobs
- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-version-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -193,7 +193,7 @@ jobs:
# don't use the setup-java cache option as this only caches what is
# necessary for the version, not the other jobs
- name: Cache local Maven repository
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-version-${{ hashFiles('**/pom.xml') }}
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: win32-${{ matrix.arch.java }}
path: src/main/resources/win32-${{ matrix.arch.java }}
path: src/main/resources/win32-*/*

mac:
name: Mac Natives ${{ matrix.arch }}
Expand Down Expand Up @@ -404,6 +404,19 @@ jobs:
-DskipTests \
deploy
- name: Package on PR
if: github.ref != 'refs/heads/master'
run: |
mvn -B versions:set -DnewVersion=${{ needs.version.outputs.version }} -DgenerateBackupPoms=false
mvn \
--no-transfer-progress \
--batch-mode \
-Dgpg.skip \
-DperformRelease=true \
-Drelease=true \
-DskipTests \
package
- name: Upload Multi-Platform Jar
uses: actions/upload-artifact@v3
with:
Expand All @@ -416,6 +429,7 @@ jobs:
tar -cvf debian-releases.tar target/{debian-*,ubuntu-*}/*
- name: Create release
if: github.ref == 'refs/heads/master'
uses: ncipollo/release-action@40bb172bd05f266cf9ba4ff965cb61e9ee5f6d01
with:
artifacts: "target/*.jar,debian-releases.tar"
Expand All @@ -439,6 +453,7 @@ jobs:
deploy:
name: Deploy Debian packages
if: github.ref == 'refs/heads/master'
needs:
- version
- multiplatform
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jitsi-srtp</artifactId>
<version>1.1-9-ge234488</version>
<version>1.1-10-gd9bbebf</version>
</dependency>
<dependency>
<groupId>org.opentelecoms.sdp</groupId>
Expand All @@ -109,7 +109,7 @@
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>jitsi-lgpl-dependencies</artifactId>
<version>1.2-20-gcdff576</version>
<version>1.2-21-gc4508d5</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
Expand Down

0 comments on commit 77564dc

Please sign in to comment.