Skip to content

Commit

Permalink
Merge pull request lcompilers#17 from certik/ci3
Browse files Browse the repository at this point in the history
CI: Export platform specific env variables
  • Loading branch information
certik authored Jan 14, 2022
2 parents 8da3a22 + bf63667 commit ce82896
Showing 1 changed file with 27 additions and 1 deletion.
28 changes: 27 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
python-version: ["3.10"]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- uses: conda-incubator/setup-miniconda@v2
with:
Expand All @@ -24,7 +26,7 @@ jobs:
- name: Install Windows Conda Packages
if: contains(matrix.os, 'windows')
shell: bash -l {0}
run: conda install m2-bison=3.0.4
run: conda install m2-bison=3.0.4 ninja

- name: Install Linux / macOS Conda Packages
if: contains(matrix.os, 'ubuntu') || contains(matrix.os, 'macos')
Expand All @@ -37,6 +39,30 @@ jobs:
conda info
conda list
- name: Setup Platform (Linux)
if: contains(matrix.os, 'ubuntu')
shell: bash -l {0}
run: |
echo "LFORTRAN_CMAKE_GENERATOR=Unix Makefiles" >> $GITHUB_ENV
echo "WIN=0" >> $GITHUB_ENV
echo "MACOS=0" >> $GITHUB_ENV
- name: Setup Platform (macOS)
if: contains(matrix.os, 'macos')
shell: bash -l {0}
run: |
echo "LFORTRAN_CMAKE_GENERATOR=Unix Makefiles" >> $GITHUB_ENV
echo "WIN=0" >> $GITHUB_ENV
echo "MACOS=1" >> $GITHUB_ENV
- name: Setup Platform (Windows)
if: contains(matrix.os, 'windows')
shell: bash -l {0}
run: |
echo "LFORTRAN_CMAKE_GENERATOR=Ninja" >> $GITHUB_ENV
echo "WIN=1" >> $GITHUB_ENV
echo "MACOS=0" >> $GITHUB_ENV
- name: Build and test
shell: bash -l {0}
run: |
Expand Down

0 comments on commit ce82896

Please sign in to comment.