Skip to content

Commit

Permalink
Merge pull request lcompilers#15 from certik/ci2
Browse files Browse the repository at this point in the history
CI: Build a Conda environment
  • Loading branch information
certik committed Jan 14, 2022
2 parents 7d05cd6 + ce4c007 commit 8da3a22
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 5 deletions.
28 changes: 23 additions & 5 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,33 @@ jobs:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
environment-file: ci/environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false

- name: Install Windows Conda Packages
if: contains(matrix.os, 'windows')
shell: bash -l {0}
run: conda install m2-bison=3.0.4

- name: Install Linux / macOS Conda Packages
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
shell: bash -l {0}
run: conda install bison=3.4

- name: Conda info
shell: bash -l {0}
run: conda info
- name: Conda list
shell: pwsh
run: conda list
run: |
conda info
conda list
- name: Build and test
run: xonsh ci/build.xsh
shell: bash -l {0}
run: |
echo $CONDA_PREFIX
xonsh ci/build.xsh
18 changes: 18 additions & 0 deletions ci/environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: lp
channels:
- conda-forge
- defaults
dependencies:
- llvmdev=11.1.0
- toml
- pytest
- jupyter
- xeus=1.0.1
- xtl
- nlohmann_json
- cppzmq
- jupyter_kernel_test
- xonsh
- re2c
# - bison=3.4 [not win]
# - m2-bison=3.4 [win]

0 comments on commit 8da3a22

Please sign in to comment.