Update pack_molecular_arm64.py #272
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: Molecular Plus | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build_windows: | |
runs-on: windows-latest | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10.6 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10.6 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
$version = python pack_molecular.py | |
echo "VERSION=${version}" >> $env:GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload windows zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_310_win | |
path: ./molecular-plus_${{ env.VERSION }}_310_win.zip | |
build_windows41: | |
runs-on: windows-latest | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
$version = python pack_molecular.py | |
echo "VERSION=${version}" >> $env:GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload windows zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_311_win | |
path: ./molecular-plus_${{ env.VERSION }}_311_win.zip | |
build_linux: | |
runs-on: ubuntu-22.04 | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
version=$(python pack_molecular.py) | |
echo "VERSION=${version}" >> $GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload linux zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_310_linux | |
path: ./molecular-plus_${{ env.VERSION }}_310_linux.zip | |
build_linux41: | |
runs-on: ubuntu-22.04 | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
version=$(python pack_molecular.py) | |
echo "VERSION=${version}" >> $GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload linux zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_311_linux | |
path: ./molecular-plus_${{ env.VERSION }}_311_linux.zip | |
build_macos: | |
runs-on: macos-13 | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10.12 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.10.12 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
version=$(python pack_molecular.py) | |
echo "VERSION=${version}" >> $GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload mac zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_310_macos | |
path: ./molecular-plus_${{ env.VERSION }}_310_macos.zip | |
build_macos41: | |
runs-on: macos-13 | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
version=$(python pack_molecular.py) | |
echo "VERSION=${version}" >> $GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload mac zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_311_macos | |
path: ./molecular-plus_${{ env.VERSION }}_311_macos.zip | |
build_macos41_arm64: | |
runs-on: macos-13 | |
outputs: | |
VERSION: ${{ steps.build.outputs.VERSION }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11.7 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 pytest cython | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --exit-zero --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | |
- name: Build with Cython | |
id: build | |
run: | | |
version=$(python pack_molecular_arm64.py) | |
echo "VERSION=${version}" >> $GITHUB_ENV | |
echo "::set-output name=VERSION::${version}" | |
- name: Upload mac zip | |
uses: actions/upload-artifact@v3 | |
with: | |
name: molecular-plus_${{ env.VERSION }}_311_macos_arm64 | |
path: ./molecular-plus_${{ env.VERSION }}_311_macos_arm64.zip | |