forked from WeberSynBioLab/optoConfig-96
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,80 @@ | ||
name: build_test | ||
|
||
on: | ||
push | ||
|
||
jobs: | ||
build-linux: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip wheel build | ||
- name: Build package | ||
run: | | ||
python -m build | ||
# Make a directory that matches the dist* glob in upload-artifact | ||
# in order to upload the built package in a subdirectory. | ||
mkdir dist_stub | ||
build-win: | ||
runs-on: windows-latest | ||
|
||
# First check if doc versions match | ||
needs: [build-linux] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install package | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install ".[build]" | ||
- name: Build package | ||
run: | | ||
pyinstaller optoConfig96.spec | ||
- name: Compress package | ||
run: 7z a -tzip windows.zip ./dist/* | ||
|
||
|
||
build-macos: | ||
runs-on: macos-11 | ||
|
||
# First check if doc versions match | ||
needs: [build-linux] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
|
||
- name: Install package and dependencies | ||
run: | | ||
brew install create-dmg | ||
python -m pip install --upgrade pip wheel | ||
python -m pip install ".[build]" | ||
- name: Build package | ||
run: | | ||
pyinstaller optoConfig96.spec | ||
chmod +x create_dmg.sh | ||
# Sign after removal of offending packages (see optoConfig96.spec) | ||
codesign -s - --force --all-architectures --timestamp --deep dist/optoConfig96.app | ||
./create_dmg.sh |