Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

playing around #8

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 24 additions & 9 deletions .github/workflows/build-installers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build & Release

on:
push:
branches:
- main
tags:
- '**'
pull_request:
Expand All @@ -20,8 +18,8 @@ jobs:
name: Build binaries
runs-on: ${{ matrix.runs-on }}
strategy:
fail-fast: false
matrix:
# runs-on: [ ubuntu-latest, macos-latest, windows-2019]
runs-on: [ ubuntu-latest, windows-2019 ]
platform: [ amd64 ]
config:
Expand All @@ -31,6 +29,9 @@ jobs:
- app-name: climate-explorer-chia
app-mode: explorer
app-description: "Interface for viewing Chia on-chain carbon tokens"
- app-name: dev-token-driver-chia
app-mode: dev
app-description: "Token driver in dev mode"

steps:
- name: Checkout Code
Expand All @@ -39,9 +40,10 @@ jobs:
submodules: 'recursive'

- name: Setup Python
uses: Chia-Network/actions/setup-python@main
#uses: Chia-Network/actions/setup-python@main
uses: actions/setup-python@v4
with:
python-version: '3.10'
python-version: '3.10.8'

- name: Create .env file
run: |
Expand All @@ -62,20 +64,33 @@ jobs:

- name: Install with poetry and package application (Windows)
run: |
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
pip install virtualenv
echo "~~~~~ Clear pip cache ~~~~~"
pip cache purge
echo "~~~~~ Pip installing virtualenv ~~~~~"
pip install virtualenv --no-cache-dir
echo "~~~~~ Creating the virtualenv ~~~~~"
python -m virtualenv venv
"echo ~~~~~ Activating the virtualenv ~~~~~"
.\venv\Scripts\activate
pip install pyinstaller
echo "~~~~~ Update PIP and related packages ~~~~~"
pip install --upgrade pip setuptools wheel --no-cache-dir
echo "~~~~~ Installing pyinstaller with pip ~~~~~"
pip install pyinstaller --no-cache-dir
echo "~~~~~ Installing Poetry ~~~~~"
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | py -
echo "~~~~~ Running poetry install"
C:\Users\runneradmin\AppData\Roaming\Python\Scripts\poetry install
echo "~~~~~ Running PyInstaller ~~~~~"
python -m PyInstaller --clean pyinstaller.spec
if: matrix.runs-on == 'windows-2019'

- name: Get tag name
id: tag-name
run: |
echo "TAGNAME=$(echo $GITHUB_REF | cut -d / -f 3)" >> $GITHUB_OUTPUT
TAGNAME=$(echo $GITHUB_REF | cut -d / -f 3)
echo "TAGNAME=${TAGNAME}" >> $GITHUB_OUTPUT
echo "Tag is ${TAGNAME}"
echo "github.sha is ${{ github.sha }}"

- name: Install j2
run: |
Expand Down
Loading