-
Notifications
You must be signed in to change notification settings - Fork 24
53 lines (50 loc) · 1.39 KB
/
job_cx-freeze-dmg.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: job_cx-freeze-macos
on:
workflow_call:
inputs:
version:
required: true
type: string
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- arch: arm64
pyarch: arm64
os: macos-14
- arch: x86_64
pyarch: x64
os: macos-13
name: Package ${{ matrix.arch }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: actions/setup-python@v5
with:
cache: pip
python-version: '3.12'
check-latest: true
architecture: ${{ matrix.pyarch }}
- name: Install build dependencies
run: |
pip3 install --upgrade cx_freeze
- name: Install target dependencies
run: |
pip3 install -r misc/requirements.in
- name: Build
env:
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ inputs.version }}
run: |
python3 -m setuptools_scm --force-write-version-files
python3 freeze.py bdist_dmg
mv build/Rare.dmg Rare-${{ inputs.version }}-${{ matrix.arch }}.dmg
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: Rare-${{ inputs.version }}-${{ matrix.arch }}.dmg
path: Rare-${{ inputs.version }}-${{ matrix.arch }}.dmg