-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #185 from AxVultis/actions/ubuntu-22
Add Ubuntu 22.04
- Loading branch information
Showing
2 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |