Dependency setup

- Poetry for maintaining python server executable
- Reroll Jetbrains configs
- Update readme
- Add launcher build pipeline
This commit is contained in:
MrTeferi
2022-11-21 19:58:20 -06:00
parent a4321f4ffe
commit 6027eb7737
12 changed files with 319 additions and 23 deletions

41
.github/workflows/build.yml vendored Normal file
View File

@@ -0,0 +1,41 @@
# credit: https://data-dive.com/multi-os-deployment-in-cloud-using-pyinstaller-and-github-actions
name: Card Cojurer (server)
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
name: Build packages
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: macos-latest
TARGET: macos
- os: windows-latest
TARGET: windows
- os: ubuntu-latest
TARGET: linux
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: 1.2.2
- name: Install dependencies
run: |
poetry install
- name: Build with PyInstaller
run: |
poetry run pyinstaller server.spec ${{ github.ref_name }}
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
path: ./dist/cardconjurer-server.${{ github.ref_name }}.zip
name: CC Server (${{ matrix.TARGET }})