mirror of
https://github.com/retoaccess1/haveno-reto.git
synced 2024-11-10 05:03:35 +01:00
combine artifacts and build workflow (#866)
This commit is contained in:
parent
de07a926c2
commit
4a1a4f359e
108
.github/workflows/artifacts.yml
vendored
108
.github/workflows/artifacts.yml
vendored
@ -1,108 +0,0 @@
|
|||||||
name: Build Haveno Installers
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- master
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-linux:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '21'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
sudo apt update
|
|
||||||
sudo apt install -y rpm
|
|
||||||
|
|
||||||
- name: Build Haveno Installer for Linux
|
|
||||||
run: |
|
|
||||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
|
||||||
./gradlew packageInstallers
|
|
||||||
working-directory: .
|
|
||||||
|
|
||||||
- name: Move Release Files
|
|
||||||
run: |
|
|
||||||
mkdir ${{ github.workspace }}/release
|
|
||||||
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release
|
|
||||||
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release
|
|
||||||
mv desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: HavenoInstaller-linux
|
|
||||||
path: ${{ github.workspace }}/release
|
|
||||||
|
|
||||||
|
|
||||||
build-macos:
|
|
||||||
runs-on: macos-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '21'
|
|
||||||
|
|
||||||
- name: Build Haveno Installer for macOS
|
|
||||||
run: |
|
|
||||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
|
||||||
./gradlew packageInstallers
|
|
||||||
working-directory: .
|
|
||||||
|
|
||||||
- name: Move Release Files
|
|
||||||
run: |
|
|
||||||
mkdir ${{ github.workspace }}/release
|
|
||||||
mv desktop/build/temp-*/binaries/Haveno-*.dmg ${{ github.workspace }}/release
|
|
||||||
mv desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: HavenoInstaller-macos
|
|
||||||
path: ${{ github.workspace }}/release
|
|
||||||
|
|
||||||
build-windows:
|
|
||||||
runs-on: windows-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Set up JDK
|
|
||||||
uses: actions/setup-java@v2
|
|
||||||
with:
|
|
||||||
distribution: 'adopt'
|
|
||||||
java-version: '21'
|
|
||||||
|
|
||||||
- name: Install WiX Toolset
|
|
||||||
run: |
|
|
||||||
Invoke-WebRequest -Uri 'https://github.com/wixtoolset/wix3/releases/download/wix314rtm/wix314.exe' -OutFile wix314.exe
|
|
||||||
.\wix314.exe /quiet /norestart
|
|
||||||
shell: powershell
|
|
||||||
|
|
||||||
- name: Build Haveno Installer for Windows
|
|
||||||
run: |
|
|
||||||
./gradlew clean build --refresh-keys --refresh-dependencies
|
|
||||||
./gradlew packageInstallers
|
|
||||||
working-directory: .
|
|
||||||
|
|
||||||
- name: Move Release Files
|
|
||||||
run: |
|
|
||||||
mkdir ${{ github.workspace }}/release
|
|
||||||
Move-Item -Path desktop\build\temp-*/binaries\Haveno-*.exe -Destination ${{ github.workspace }}/release
|
|
||||||
Move-Item -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256 -Destination ${{ github.workspace }}/release
|
|
||||||
shell: powershell
|
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
|
||||||
with:
|
|
||||||
name: HavenoInstaller-windows
|
|
||||||
path: ${{ github.workspace }}/release
|
|
39
.github/workflows/build.yml
vendored
39
.github/workflows/build.yml
vendored
@ -31,3 +31,42 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: cached-localnet
|
name: cached-localnet
|
||||||
path: .localnet
|
path: .localnet
|
||||||
|
- name: Install dependencies
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' }}
|
||||||
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y rpm
|
||||||
|
- name: Install WiX Toolset
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
run: |
|
||||||
|
Invoke-WebRequest -Uri 'https://github.com/wixtoolset/wix3/releases/download/wix314rtm/wix314.exe' -OutFile wix314.exe
|
||||||
|
.\wix314.exe /quiet /norestart
|
||||||
|
shell: powershell
|
||||||
|
- name: Build Haveno Installer
|
||||||
|
run: |
|
||||||
|
./gradlew clean build --refresh-keys --refresh-dependencies
|
||||||
|
./gradlew packageInstallers
|
||||||
|
working-directory: .
|
||||||
|
- name: Move Release Files on Unix
|
||||||
|
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
|
||||||
|
run: |
|
||||||
|
mkdir ${{ github.workspace }}/release
|
||||||
|
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
|
||||||
|
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release
|
||||||
|
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release
|
||||||
|
else
|
||||||
|
mv desktop/build/temp-*/binaries/Haveno-*.dmg ${{ github.workspace }}/release
|
||||||
|
fi
|
||||||
|
mv desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 ${{ github.workspace }}/release
|
||||||
|
shell: bash
|
||||||
|
- name: Move Release Files on Windows
|
||||||
|
if: ${{ matrix.os == 'windows-latest' }}
|
||||||
|
run: |
|
||||||
|
mkdir ${{ github.workspace }}/release
|
||||||
|
Move-Item -Path desktop\build\temp-*/binaries\Haveno-*.exe -Destination ${{ github.workspace }}/release
|
||||||
|
Move-Item -Path desktop\build\temp-*/binaries\desktop-*.jar.SHA-256 -Destination ${{ github.workspace }}/release
|
||||||
|
shell: powershell
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: HavenoInstaller-${{ matrix.os }}
|
||||||
|
path: ${{ github.workspace }}/release
|
||||||
|
Loading…
Reference in New Issue
Block a user