diff --git a/.github/workflows/build_multi_platform.yml b/.github/workflows/build_multi_platform.yml new file mode 100644 index 0000000..bd19128 --- /dev/null +++ b/.github/workflows/build_multi_platform.yml @@ -0,0 +1,27 @@ +name: build on multi-plarform +on: + workflow_dispatch: +jobs: + job_1: + name: ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-latest, ubuntu-latest, macos-latest] + steps: + - name: git checkout + uses: actions/checkout@v4 + - name: build artifacts + run: | + eval "$(conda shell.bash activate)" + conda install -c conda-forge -y pyyaml jinja2 requests ninja + python setup.py -n all + - name: upload artifacts + uses: actions/upload-artifact@v4 + if: ${{ matrix.os == 'macos-latest' }} + with: + retention-days: 3 + path: | + dist/sortmerna*Darwin.7z + dist/sortmerna*Darwin.sh + dist/sortmerna*Darwin.tar.gz diff --git a/.github/workflows/build_osx.yml b/.github/workflows/build_osx.yml deleted file mode 100644 index d6c1141..0000000 --- a/.github/workflows/build_osx.yml +++ /dev/null @@ -1,51 +0,0 @@ -name: test build on osx -on: - workflow_dispatch: -jobs: - job_1: - name: test job - runs-on: macos-latest - steps: - - name: git checkout - uses: actions/checkout@v4 - - name: build artifacts - run: | - #echo "conda: $(which conda)" - #echo "CONDA/bin: $CONDA/bin" - #ls -l $CONDA/bin - #echo "GITHUB_PATH: $GITHUB_PATH" - #echo "PATH: $PATH" - #echo "CONDA/bin/python --version" - #$CONDA/bin/python --version - #echo "running 'conda search -c conda-forge requests'" - #conda search -c conda-forge requests - #echo "pip version: $(pip --version)" - #echo "pip list:" - #pip list <- only certifi 2024.2.2 and pip 24.0 installed - #echo "check requests" - #pip show requests <- throws error if not installed - # OK - python + brew - #echo "pip install pyyaml jinja2 requests:" - #pip install pyyaml jinja2 requests - #echo "brew install ninja" - #brew install ninja - #echo "running 'python setup.py -n all'" - #python setup.py -n all - # OK - conda - echo "SHELL: $SHELL" - echo "running conda shell.bash activate" - eval "$(conda shell.bash activate)" - conda install -c conda-forge -y pyyaml jinja2 requests ninja - #conda install -y requests - #echo "python: $(which python)" - echo "python version: $(python --version)" - echo "ninja: $(which ninja)" - python setup.py -n all - - name: upload artifacts - uses: actions/upload-artifact@v4 - with: - retention-days: 3 - path: | - dist/sortmerna*Darwin.7z - dist/sortmerna*Darwin.sh - dist/sortmerna*Darwin.tar.gz