-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Flora-Network
committed
Jul 20, 2021
1 parent
7fbb04c
commit 8557b3b
Showing
9 changed files
with
298 additions
and
61 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
name: Linux installer on Python 3.8 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: Linux installer on Python 3.8 | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.8] | ||
os: [ubuntu-18.04] | ||
|
||
steps: | ||
- name: Cancel previous runs on the same branch | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
uses: styfle/cancel-workflow-action@0.9.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Setup Python environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache npm | ||
uses: actions/cache@v2.1.5 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache pip | ||
uses: actions/cache@v2.1.5 | ||
with: | ||
# Note that new runners may break this https://github.com/actions/cache/issues/292 | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Run install script | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} | ||
BUILD_VDF_CLIENT: "N" | ||
run: | | ||
sh install.sh | ||
- name: Setup Node 12.x | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Build .deb and .rpm packages | ||
run: | | ||
. ./activate | ||
sudo apt-get -y install rpm | ||
ldd --version | ||
cd ./flora-blockchain-gui | ||
git status | ||
cd ../build_scripts | ||
sh build_linux.sh amd64 | ||
- name: Upload Linux artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Linux-Installers | ||
path: ${{ github.workspace }}/build_scripts/final_installer/ |
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,115 @@ | ||
name: MacOS installer on Catalina and Python 3.8 | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
tags: | ||
- '**' | ||
pull_request: | ||
branches: | ||
- '**' | ||
|
||
jobs: | ||
build: | ||
name: MacOS installer on Catalina and Python 3.8 | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 40 | ||
strategy: | ||
fail-fast: false | ||
max-parallel: 4 | ||
matrix: | ||
python-version: [3.9] | ||
os: [macOS-latest] | ||
|
||
steps: | ||
- name: Cancel previous runs on the same branch | ||
if: ${{ github.ref != 'refs/heads/main' }} | ||
uses: styfle/cancel-workflow-action@0.9.0 | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout Code | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
submodules: recursive | ||
|
||
- name: Setup Python environment | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Cache npm | ||
uses: actions/cache@v2.1.5 | ||
env: | ||
cache-name: cache-node-modules | ||
with: | ||
# npm cache files are stored in `~/.npm` on Linux/macOS | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- | ||
- name: Get pip cache dir | ||
id: pip-cache | ||
run: | | ||
echo "::set-output name=dir::$(pip cache dir)" | ||
- name: Cache pip | ||
uses: actions/cache@v2.1.5 | ||
with: | ||
# Note that new runners may break this https://github.com/actions/cache/issues/292 | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }} | ||
restore-keys: | | ||
${{ runner.os }}-pip- | ||
- name: Test for secrets access | ||
id: check_secrets | ||
shell: bash | ||
run: | | ||
unset HAS_SECRET | ||
if [ -n "$SECRET" ]; then HAS_SECRET='true' ; fi | ||
echo ::set-output name=HAS_SECRET::${HAS_SECRET} | ||
env: | ||
SECRET: "${{ secrets.APPLE_DEV_ID_APP }}" | ||
|
||
- name: Import Apple app signing certificate | ||
if: steps.check_secrets.outputs.HAS_SECRET | ||
uses: Apple-Actions/import-codesign-certs@v1 | ||
with: | ||
p12-file-base64: ${{ secrets.APPLE_DEV_ID_APP }} | ||
p12-password: ${{ secrets.APPLE_DEV_ID_APP_PASS }} | ||
|
||
- name: Run install script | ||
env: | ||
INSTALL_PYTHON_VERSION: ${{ matrix.python-version }} | ||
BUILD_VDF_CLIENT: "N" | ||
run: | | ||
sh install.sh | ||
- name: Setup Node 12.x | ||
uses: actions/setup-node@v2.1.5 | ||
with: | ||
node-version: '12.x' | ||
|
||
- name: Build MacOS DMG in Catalina | ||
env: | ||
NOTARIZE: ${{ steps.check_secrets.outputs.HAS_SECRET }} | ||
APPLE_NOTARIZE_USERNAME: "${{ secrets.APPLE_NOTARIZE_USERNAME }}" | ||
APPLE_NOTARIZE_PASSWORD: "${{ secrets.APPLE_NOTARIZE_PASSWORD }}" | ||
run: | | ||
. ./activate | ||
cd ./flora-blockchain-gui | ||
git status | ||
cd ../build_scripts | ||
sh build_macos.sh | ||
- name: Upload MacOS artifacts | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: Flora-Installer-on-MacOS-10.15-dmg | ||
path: ${{ github.workspace }}/build_scripts/final_installer/ |
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
Oops, something went wrong.