[Fortran] Fixed typo in sparse oti implementation. #6
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 conda package | |
on: | |
# release: | |
# types: [published] | |
push: | |
branches: | |
- master | |
pull_request: | |
types: [closed] | |
branches: | |
- master | |
jobs: | |
build_and_upload: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
arch: [x86_64, arm64] | |
exclude: | |
- os: ubuntu-latest | |
arch: arm64 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Conda | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: pyoti | |
auto-update-conda: true | |
python-version: 3.9 | |
channels: conda-forge,defaults | |
channel-priority: strict | |
architecture: ${{ matrix.arch }} | |
- name: Set environment variable for sourcing conda (Linux) | |
if: runner.os == 'Linux' | |
run: | | |
echo "RUNNER_OS_SOURCE=/home/runner/.profile" >> $GITHUB_ENV | |
- name: Set environment variable for sourcing conda (Mac) | |
if: runner.os == 'macOS' | |
run: | | |
echo "RUNNER_OS_SOURCE=/Users/runner/.profile" >> $GITHUB_ENV | |
- name: Install build tools | |
run: | | |
source $RUNNER_OS_SOURCE | |
conda activate pyoti | |
conda install -y conda-build anaconda-client | |
- name: Build Conda package | |
run: | | |
source $RUNNER_OS_SOURCE | |
conda activate pyoti | |
conda build conda | |
- name: Upload Conda package | |
env: | |
ANACONDA_TOKEN: ${{ secrets.ANACONDA_TOKEN }} | |
run: | | |
source $RUNNER_OS_SOURCE | |
conda activate pyoti | |
PACKAGE_PATH=$(conda build conda --output) | |
anaconda -t $ANACONDA_TOKEN upload -u mauriaristi $PACKAGE_PATH --channel main --label main --force |