Skip to content

Commit

Permalink
Update ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
looooo authored Nov 21, 2023
1 parent f8326e6 commit 094b63f
Showing 1 changed file with 99 additions and 5 deletions.
104 changes: 99 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ on:
types: [published]

jobs:
build:
build_linux:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
os: ['ubuntu-latest']

steps:
- name: "Clone SMESH"
Expand All @@ -30,21 +30,67 @@ jobs:
channels: conda-forge

- name: "Install conda build"
shell: sh -l {0}
shell: pwsh
run: mamba install conda-build python-patch

- name: "Check conda"
shell: sh -l {0}
shell: pwsh
run: |
conda info -a
conda list
- name: "Install Linux Dependencies"
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install -y libxext-dev
sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib64
- name: "Prepare sources"
shell: pwsh
run: |
python prepare.py
- name: "Run conda build"
shell: pwsh
run: |
mkdir conda
conda build ci/conda --output-folder conda
- name: "Upload conda package"
uses: actions/upload-artifact@v2
with:
name: smesh-${{ matrix.os }}
path: conda

build_osx:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['macos-latest']

steps:
- name: "Clone SMESH"
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: "Configure conda"
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
use-mamba: true
channels: conda-forge

- name: "Install conda build"
shell: sh -l {0}
run: mamba install conda-build python-patch

- name: "Check conda"
shell: sh -l {0}
run: |
conda info -a
conda list
- name: "Prepare sources"
shell: sh -l {0}
run: |
Expand All @@ -61,3 +107,51 @@ jobs:
with:
name: smesh-${{ matrix.os }}
path: conda

build_windows:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['windows-latest']

steps:
- name: "Clone SMESH"
uses: actions/checkout@v2
with:
submodules: 'recursive'

- name: "Configure conda"
uses: conda-incubator/setup-miniconda@v2
with:
miniforge-version: latest
use-mamba: true
channels: conda-forge

- name: "Install conda build"
shell: sh -l {0}
run: mamba install conda-build python-patch

- name: "Check conda"
shell: sh -l {0}
run: |
conda info -a
conda list
- name: "Prepare sources"
shell: sh -l {0}
run: |
python prepare.py
- name: "Run conda build"
shell: sh -l {0}
run: |
mkdir conda
conda build ci/conda --output-folder conda
- name: "Upload conda package"
uses: actions/upload-artifact@v2
with:
name: smesh-${{ matrix.os }}
path: conda

0 comments on commit 094b63f

Please sign in to comment.