mirror of
https://github.com/dortania/OpenCore-Legacy-Patcher.git
synced 2026-04-13 20:28:21 +10:00
50 lines
1.3 KiB
YAML
50 lines
1.3 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
workflow_dispatch:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
runs-on: macos-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python 3
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: "3.x"
|
|
- name: Install Python Dependencies
|
|
run: |
|
|
python3 -m pip install -U pip
|
|
pip3 install pyinstaller
|
|
|
|
- run: pyinstaller Opencore-Patcher.spec
|
|
- run: ./after_pyinstaller.sh
|
|
|
|
- run: cd dist; zip ../OpenCore-Patcher.zip OpenCore-Patcher; zip -r ../OpenCore-Patcher.app.zip OpenCore-Patcher.app
|
|
|
|
- name: Upload Binary to Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: OpenCore-Patcher
|
|
path: OpenCore-Patcher.zip
|
|
- name: Upload App to Artifacts
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: OpenCore-Patcher.app
|
|
path: OpenCore-Patcher.app.zip
|
|
|
|
- name: Upload to Release
|
|
if: github.event_name == 'release'
|
|
uses: svenstaro/upload-release-action@e74ff71f7d8a4c4745b560a485cc5fdb9b5b999d
|
|
with:
|
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
|
file: OpenCore-Patcher.app.zip
|
|
tag: ${{ github.ref }}
|
|
file_glob: true
|