mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-09 15:17:24 -05:00
49 lines
1.5 KiB
YAML
49 lines
1.5 KiB
YAML
# Create nightly release for Linux, Mac and Windows using the Linux runner.
|
|
name: Nightly Release
|
|
|
|
on:
|
|
push:
|
|
branches: [ master ]
|
|
# Don't run nightly build for pull requests - uncomment to test changes to this action within scope of the PR review
|
|
# pull_request:
|
|
# branches: [ master ]
|
|
|
|
jobs:
|
|
nightly:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- name: Set up JDK 27
|
|
uses: actions/setup-java@v6
|
|
with:
|
|
# Must match the JDK version downloaded in build.gradle (jdk_download_base) - jlink requires an exact version match
|
|
java-version: '27.0.0'
|
|
distribution: 'liberica'
|
|
java-package: 'jdk+fx'
|
|
|
|
- name: Set up Gradle
|
|
uses: gradle/actions/setup-gradle@v6
|
|
|
|
- name: Build Linux and Mac releases with Gradle
|
|
run: ./gradlew runtimeZipOthers -PprojectVersion=nightly
|
|
|
|
- name: Build Windows release with Gradle
|
|
run: ./gradlew runtimeZipWindows -PprojectVersion=nightly
|
|
|
|
- name: Create Build Info file
|
|
run: |
|
|
echo -e "ref: $GITHUB_REF \ncommit: $GITHUB_SHA\nbuild: $(date +"%Y-%m-%dT%H:%M:%SZ")" > build/image/build_info.txt
|
|
|
|
- name: Add build artifacts to nightly release
|
|
uses: softprops/action-gh-release@v3
|
|
with:
|
|
tag_name: nightly
|
|
prerelease: true
|
|
files: |
|
|
build/image/*.zip
|
|
build/image/build_info.txt
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|