Compare commits

...

2 Commits

Author SHA1 Message Date
justynboyer@gmail.com
3589b4890d create folder 2024-09-29 16:27:43 +01:00
justynboyer@gmail.com
34ef6da335 switch version 2024-09-29 16:11:51 +01:00

View File

@ -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