FreeBSD #10
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Upload - macOS | |
on: | |
push: | |
branches: | |
- nobridge | |
jobs: | |
build: | |
runs-on: macOS-latest | |
strategy: | |
matrix: | |
platform: [amd64, arm64] | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install PyInstaller | |
run: | | |
pip install pyinstaller | |
- name: Build with PyInstaller | |
run: | | |
pyinstaller --onefile main.py | |
mv dist/main dist/umsktpy | |
cp keys.json dist/keys.json | |
- name: Run umsktpy | |
run: | | |
cd dist | |
./umsktpy | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: umsktpy-macos-${{ matrix.platform }} | |
path: dist |