mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 12:54:57 -05:00
Dependency setup
- Poetry for maintaining python server executable - Reroll Jetbrains configs - Update readme - Add launcher build pipeline
This commit is contained in:
41
.github/workflows/build.yml
vendored
Normal file
41
.github/workflows/build.yml
vendored
Normal 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 }})
|
Reference in New Issue
Block a user