Skip to content

Add new workflow and disable other tests #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@ on:
- main
tags:
- 'v*'
pull_request:
branches:
- main

env:
MACOSX_DEPLOYMENT_TARGET: 14.0

Expand Down
101 changes: 101 additions & 0 deletions .github/workflows/debug_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Debug Disabled Tests

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
debug_tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment.yml
create-args: >-
python=3.10
bison=3.4

- name: Print Debug Information
shell: bash -e -l {0}
run: |
echo "=== System Information ==="
uname -a
free -h
df -h

echo "=== Micromamba Information ==="
micromamba --version
micromamba info

echo "=== Compiler Versions ==="
gfortran --version
gcc --version
g++ --version
clang --version
python --version
cmake --version
ninja --version

echo "=== Compiler Locations ==="
which gfortran
which gcc
which g++
which clang
which python
which cmake
which ninja

echo "=== Environment ==="
env | sort

echo "=== Python Dependencies ==="
pip list

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

- name: Build Linux
shell: bash -e -l {0}
run: |
./build0.sh
cmake . -GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG -DDEBUG_ERROR_RENDERING" \
-DWITH_LLVM=yes \
-DLFORTRAN_BUILD_ALL=yes \
-DWITH_STACKTRACE=no \
-DWITH_RUNTIME_STACKTRACE=yes \
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache

cmake --build . -j16 --target install

- name: Run Ctest
if: Always()
shell: bash -e -l {0}
run: |
ctest --rerun-failed --output-on-failure

- name: Run Reference Tests
if: Always()
shell: bash -e -l {0}
run: |
./run_tests.py -s

- name: Run Integration Tests
if: Always()
shell: bash -e -l {0}
run: |
cd integration_tests
./run_tests.py -b llvm
./run_tests.py -b llvm -f
107 changes: 107 additions & 0 deletions .github/workflows/debug_tests_pinned_compilers.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,107 @@
name: Debug Tests (Pinned Compilers)

on:
push:
branches: [ main ]
pull_request:
branches: [ main ]

jobs:
debug_tests_pinned:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Install specific compiler versions
run: |
sudo apt-get update
sudo apt-get install -y gcc-11 g++-11 clang-14

- uses: mamba-org/setup-micromamba@v1
with:
environment-file: ci/environment.yml
create-args: >-
python=3.10
bison=3.4

- name: Print Debug Information
shell: bash -e -l {0}
run: |
echo "=== System Information ==="
uname -a
free -h
df -h

echo "=== Micromamba Information ==="
micromamba --version
micromamba info

echo "=== Compiler Versions ==="
gcc-11 --version
g++-11 --version
clang-14 --version
python --version
cmake --version
ninja --version

echo "=== Compiler Locations ==="
which gcc-11
which g++-11
which clang-14
which python
which cmake
which ninja

echo "=== Environment ==="
env | sort

echo "=== Python Dependencies ==="
pip list

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

- name: Build Linux
shell: bash -e -l {0}
run: |
./build0.sh
export CC=gcc-11
export CXX=g++-11
cmake . -GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS_RELEASE="-Wall -Wextra -O3 -funroll-loops -DNDEBUG" \
-DWITH_LLVM=yes \
-DLFORTRAN_BUILD_ALL=yes \
-DWITH_STACKTRACE=no \
-DWITH_RUNTIME_STACKTRACE=yes \
-DCMAKE_PREFIX_PATH="$CONDA_PREFIX" \
-DCMAKE_INSTALL_PREFIX=`pwd`/inst \
-DCMAKE_C_COMPILER_LAUNCHER=sccache \
-DCMAKE_CXX_COMPILER_LAUNCHER=sccache

cmake --build . -j16 --target install

# Rest of the steps remain the same
- name: Run Ctest
if: Always()
shell: bash -e -l {0}
run: |
ctest --rerun-failed --output-on-failure

- name: Run Reference Tests
if: Always()
shell: bash -e -l {0}
run: |
./run_tests.py -s

- name: Run Integration Tests
if: Always()
shell: bash -e -l {0}
run: |
cd integration_tests
./run_tests.py -b llvm
./run_tests.py -b llvm -f
Loading
Loading