mirror of
https://github.com/Investigamer/cardconjurer.git
synced 2025-07-26 04:45:01 -05:00

- Poetry for maintaining python server executable - Reroll Jetbrains configs - Update readme - Add launcher build pipeline
42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
# 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 }})
|