Skip to content

Commit

Permalink
CI: Add initial version
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaikh-Ubaid committed Sep 23, 2023
1 parent c80f93c commit d19b899
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
65 changes: 65 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
push:
branches:
- main
tags:
- 'v*'
pull_request:
branches:
- main

env:
MACOSX_DEPLOYMENT_TARGET: 12.0

jobs:
Build:
name: Conda-Forge LPython Test ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["windows-2019", "macos-latest", "ubuntu-latest"]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml

- uses: hendrikmuhs/ccache-action@main
with:
variant: sccache
key: ${{ github.job }}-${{ matrix.os }}

- name: Clone LPython Source Repository
shell: bash -e -l {0}
run: |
git clone [email protected]:lcompilers/lpython.git
- name: Run LPython Ctest
shell: bash -e -l {0}
run: |
cd lpython
ctest
- name: Run LPython Integration Tests
shell: bash -e -l {0}
run: |
cd lpython/integration_tests
./run_tests.py -b llvm c wasm
- name: Run LPython Fast Integration Tests
shell: bash -e -l {0}
run: |
cd lpython/integration_tests
./run_tests.py -b llvm c wasm -f
- name: Run LPython Reference Tests
shell: bash -e -l {0}
run: |
cd lpython
./run_tests.py
9 changes: 9 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
name: lf
channels:
- conda-forge
dependencies:
- python=3.10
- lpython=0.19.0
- node=18.0
- make
- cmake

0 comments on commit d19b899

Please sign in to comment.