Skip to content

Commit

Permalink
Add build of compiled python app on push to main branch
Browse files Browse the repository at this point in the history
- checks out code
- installs dependencies (or downloads pip cache)
- installs cx_Freeze
- builds python executable
- uploads compiled folder as artifact

People can download the zipped artifact from the build action.
  • Loading branch information
hdeadman committed Jul 24, 2022
1 parent 1fe9ec0 commit 4992a6d
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Build

env:
PYTHON_VERSION: '3.10'

on:
push:
branches:
- 'main'

jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
cache: 'pip'
cache-dependency-path: 'requirements.txt'
- name: Install Dependencies
run: pip install -r requirements.txt
- name: Install cx_Freeze
run: pip install cx_Freeze
- name: Build Native Executable
run: python setup.py build
- name: Get commit hash
id: commit
uses: pr-mpt/actions-commit-hash@v1
- name: Upload Compiled Version
uses: actions/upload-artifact@v3
with:
name: VALORANT-rank-yoinker-${{ steps.commit.outputs.short }}
path: build/exe.win-amd64-${{ env.PYTHON_VERSION }}/**

0 comments on commit 4992a6d

Please sign in to comment.