Skip to content

Commit

Permalink
Merge pull request #185 from AxVultis/actions/ubuntu-22
Browse files Browse the repository at this point in the history
Add Ubuntu 22.04
  • Loading branch information
AxVultis authored Sep 13, 2022
2 parents d54eeda + a5ea93d commit c4a91b4
Show file tree
Hide file tree
Showing 2 changed files with 98 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,47 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-ubuntu22:
name: Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt-get update -y
sudo apt-get install -y qtbase5-dev qttools5-dev qttools5-dev-tools libqt5charts5-dev libboost-all-dev
- name: Clone conceal-core
run: |
rm -rf cryptonote
git clone https://github.com/ConcealNetwork/conceal-core.git cryptonote
./.github/checkout.sh
- name: Build
id: build
run: |
ccx_version=${GITHUB_SHA::7}
release_name=ccx-desktop-ubuntu-2204-dev-"$ccx_version"
lrelease src/languages/*.ts
make -j2 build-release
mkdir $release_name
mkdir -p $release_name/icon
mv build/release/conceal-desktop $release_name
cp conceal-desktop.desktop $release_name
cp src/images/conceal.png $release_name/icon
echo "::set-output name=release_name::${release_name}"
- name: Upload To GH Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ steps.build.outputs.release_name }}
path: ${{ steps.build.outputs.release_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-macos:
name: macOS
runs-on: macos-11
Expand Down
57 changes: 57 additions & 0 deletions .github/workflows/ubuntu22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: Ubuntu 22.04

on:
push:
tags:
- "*"

jobs:
build-ubuntu22:
name: Ubuntu 22.04
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v2

- name: Install dependencies
run: |
sudo apt update -y
sudo apt install -y qtbase5-dev qttools5-dev qttools5-dev-tools libqt5charts5-dev libboost-all-dev
- name: Clone conceal-core
run: |
rm -rf cryptonote
git clone https://github.com/ConcealNetwork/conceal-core.git cryptonote
- name: Build
id: build
run: |
ccx_version=$(echo "$GITHUB_REF" | sed 's|refs/tags/||')
release_name=ccx-desktop-ubuntu-2204-v"$ccx_version"
build_folder="build/release"
lrelease src/languages/*.ts
make -j4 build-release
mkdir $release_name
mkdir -p $release_name/icon
mv $build_folder/conceal-desktop $release_name
cp conceal-desktop.desktop $release_name
cp src/images/conceal.png $release_name/icon
tar -czf "$release_name".tar.gz "$release_name"
sha256=$(shasum -a 256 "$release_name".tar.gz | awk '{print toupper($1)}')
echo "::set-output name=sha256::${sha256}"
echo "::set-output name=release_name::${release_name}.tar.gz"
echo "::set-output name=ccx_version::${ccx_version}"
# since https://github.com/softprops/action-gh-release/pull/145 body is replaced instead of being appended
# use v0.1.12 for now
- name: Create Release
uses: softprops/action-gh-release@v0.1.12
with:
files: ${{ steps.build.outputs.release_name }}
name: Conceal Desktop v${{ steps.build.outputs.ccx_version }}
body: |
[Download for Ubuntu 22.04](../../releases/download/${{ steps.build.outputs.ccx_version }}/${{ steps.build.outputs.release_name }}) **${{ steps.build.outputs.release_name }}**
`SHA256 : ${{ steps.build.outputs.sha256 }}`
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c4a91b4

Please sign in to comment.