Skip to content

One script to build them all #65

One script to build them all

One script to build them all #65

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: One script to build them all
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
workflow_dispatch
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up environment
run: |
sudo apt-get update
cat apt.txt | xargs sudo apt-get install
cd ..
pip3 install virtualenv
python3 -m virtualenv -p python3 pyenv
source pyenv/bin/activate
cd resipy
pip3 install setuptools==65.6.3
pip3 install -r requirements-gui.txt
pip3 install pyinstaller
- name: Run build
run: |
cd src
./build.sh
find ./
cd ..
- uses: actions/upload-artifact@v3
with:
name: ResIPy-linux.zip
path: ./src/dist/ResIPy-linux.zip
- uses: actions/upload-artifact@v3
with:
name: ResIPy-linux
path: ./src/dist/ResIPy-linux
build-windows:
runs-on: windows-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up environment
run: |
cd ..
pip install virtualenv
python -m virtualenv -p python pyenv
pyenv\Scripts\activate
cd resipy
pip install setuptools==65.6.3
pip install -r requirements-gui.txt
pip install pyinstaller
- name: Run build
run: |
cd src
dir
.\build.bat
cd ..
- uses: actions/upload-artifact@v3
with:
name: ResIPy-windows.zip
path: ./src/dist/ResIPy-windows.zip
- uses: actions/upload-artifact@v3
with:
name: ResIPy-windows.exe
path: ./src/dist/ResIPy-windows.exe
build-macos:
runs-on: macos-12
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
- name: Set up environment
run: |
brew reinstall [email protected]
cd ..
/usr/local/bin/python3.11 -m pip install virtualenv
/usr/local/bin/python3.11 -m virtualenv -p /usr/local/bin/python3.11 pyenv
source pyenv/bin/activate
cd resipy
/usr/local/bin/python3.11 -m pip install setuptools
/usr/local/bin/python3.11 -m pip install -r requirements-gui-macM1.txt
/usr/local/bin/python3.11 -m pip install pyinstaller
- name: Run build
run: |
cd src
source ../../pyenv/bin/activate
mkdir -p ResIPy-macos
cd ResIPy-macos
ln -s /Applications Applications
cd ..
./build-app.sh
cd dist
zip -r ResIPy-macos.zip ResIPy-macos.app
cd ../..
- uses: actions/upload-artifact@v3
with:
name: ResIPy-macos.app
path: ./src/dist/ResIPy-macos.zip
- uses: actions/upload-artifact@v3
with:
name: ResIPy-macos.dmg
path: ./src/dist/ResIPy-macos.dmg