mirror of
https://github.com/haveno-dex/haveno.git
synced 2024-10-01 01:35:48 -04:00
Compare commits
2 Commits
7b86e36176
...
3589b4890d
Author | SHA1 | Date | |
---|---|---|---|
|
3589b4890d | ||
|
34ef6da335 |
16
.github/workflows/build.yml
vendored
16
.github/workflows/build.yml
vendored
@ -11,7 +11,7 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, macos-13, windows-latest]
|
os: [ubuntu-22.04, macos-13, windows-latest]
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
steps:
|
steps:
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
name: cached-localnet
|
name: cached-localnet
|
||||||
path: .localnet
|
path: .localnet
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||||
run: |
|
run: |
|
||||||
sudo apt update
|
sudo apt update
|
||||||
sudo apt install -y rpm
|
sudo apt install -y rpm
|
||||||
@ -55,7 +55,7 @@ jobs:
|
|||||||
|
|
||||||
# get version from jar
|
# get version from jar
|
||||||
- name: Set Version Unix
|
- name: Set Version Unix
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-13' }}
|
||||||
run: |
|
run: |
|
||||||
export VERSION=$(ls desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 | grep -Eo 'desktop-[0-9]+\.[0-9]+\.[0-9]+' | sed 's/desktop-//')
|
export VERSION=$(ls desktop/build/temp-*/binaries/desktop-*.jar.SHA-256 | grep -Eo 'desktop-[0-9]+\.[0-9]+\.[0-9]+' | sed 's/desktop-//')
|
||||||
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
echo "VERSION=$VERSION" >> $GITHUB_ENV
|
||||||
@ -67,10 +67,12 @@ jobs:
|
|||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
||||||
- name: Move Release Files on Unix
|
- name: Move Release Files on Unix
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-13' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' || matrix.os == 'macos-13' }}
|
||||||
run: |
|
run: |
|
||||||
mkdir ${{ github.workspace }}/release
|
mkdir ${{ github.workspace }}/release
|
||||||
if [ "${{ matrix.os }}" == "ubuntu-latest" ]; then
|
if [ "${{ matrix.os }}" == "ubuntu-22.04" ]; then
|
||||||
|
mkdir ${{ github.workspace }}/release-rpm
|
||||||
|
mkdir ${{ github.workspace }}/release-deb
|
||||||
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release-rpm/Haveno-x86_64.rpm
|
mv desktop/build/temp-*/binaries/haveno-*.rpm ${{ github.workspace }}/release-rpm/Haveno-x86_64.rpm
|
||||||
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release-deb/Haveno-x86_64.deb
|
mv desktop/build/temp-*/binaries/haveno_*.deb ${{ github.workspace }}/release-deb/Haveno-x86_64.deb
|
||||||
else
|
else
|
||||||
@ -104,13 +106,13 @@ jobs:
|
|||||||
# linux
|
# linux
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
name: "Linux - deb artifact"
|
name: "Linux - deb artifact"
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||||
with:
|
with:
|
||||||
name: haveno-${{ env.VERSION }}-linux-deb
|
name: haveno-${{ env.VERSION }}-linux-deb
|
||||||
path: ${{ github.workspace }}/release-deb
|
path: ${{ github.workspace }}/release-deb
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v3
|
||||||
name: "Linux - rpm artifact"
|
name: "Linux - rpm artifact"
|
||||||
if: ${{ matrix.os == 'ubuntu-latest' }}
|
if: ${{ matrix.os == 'ubuntu-22.04' }}
|
||||||
with:
|
with:
|
||||||
name: haveno-${{ env.VERSION }}-linux-rpm
|
name: haveno-${{ env.VERSION }}-linux-rpm
|
||||||
path: ${{ github.workspace }}/release-rpm
|
path: ${{ github.workspace }}/release-rpm
|
||||||
|
Loading…
Reference in New Issue
Block a user