Skip to content

Commit

Permalink
Merge develop into fix-ftell-usage
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-griesbach committed Mar 28, 2024
2 parents d8ecea2 + d1cfa35 commit ea50aee
Show file tree
Hide file tree
Showing 189 changed files with 15,023 additions and 3,932 deletions.
117 changes: 96 additions & 21 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,31 +1,39 @@
name: CI for Autotools
name: CI for Autotools/Linux

on:
push:
paths-ignore:
- "**/CMakeLists.txt"
- "**.cmake"
- "**.cmake.in"
- "cmake/**"
- "CMake*"
- ".github/workflows/ci_cmake.yml"
- ".github/workflows/ci_darwin.yml"
- ".github/workflows/ci_valgrind.yml"
pull_request:

jobs:

linux-multi:
linux-multi1:
runs-on: ubuntu-latest
name: Autotools build on Linux
name: Build 1 on Linux
steps:

- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true

- name: Run bootstrap script
run: ./bootstrap

- name: Make check with debug, without shared
shell: bash
run: |
Expand All @@ -34,7 +42,7 @@ jobs:
CFLAGS="-O0 -g -Wall"
make -j V=0
make -j check V=0
cd ..
- name: Make check with MPI and debug
shell: bash
run: |
Expand All @@ -43,7 +51,7 @@ jobs:
CFLAGS="-O0 -g -Wall"
make -j V=0
make -j check V=0
cd ..
- name: Make check with MPI, without debug
shell: bash
run: |
Expand All @@ -52,7 +60,36 @@ jobs:
CFLAGS="-O2"
make -j V=0
make -j check V=0
cd ..
- name: Upload log files
if: always()
uses: actions/upload-artifact@v4
with:
name: linux_multi1_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-multi2:
runs-on: ubuntu-latest
name: Build 2 on Linux
steps:

- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@v4
with:
submodules: true

- name: Run bootstrap script
run: ./bootstrap

- name: Make check with MPI, debug and C++ compiler
shell: bash
run: |
Expand All @@ -61,39 +98,52 @@ jobs:
CFLAGS="-O0" CC=mpicxx
make -j V=0
make -j check V=0
cd ..
- name: Make distcheck without MPI and debug
shell: bash
run: |
DIR="distcheck" && mkdir -p "$DIR" && cd "$DIR"
../configure
make -j distcheck V=0
cd ..
- name: Save test suite log
- name: Upload log files
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: test_suite_log
path: ./**/test-suite.log
name: linux_multi2_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-install:
runs-on: ubuntu-latest
name: Make install on Linux
steps:

- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
- name: Fix libsc to version 2.8.3
fetch-depth: 0

- name: Fix libsc to specific version
shell: bash
run: (cd sc && git fetch --tags && git checkout v2.8.3)
run: |
cd sc
git fetch --tags
git checkout v2.8.6
# git checkout -b test-branch 2c1496904c485d4ca6f844c396b32f608b72438c
- name: Run bootstrap script
run: ./bootstrap

- name: Install libsc with debug, without shared
shell: bash
run: |
Expand All @@ -105,6 +155,7 @@ jobs:
make -j install V=0
cd ..
rm -rf sc/
- name: Install p4est with debug, without shared
shell: bash
run: |
Expand All @@ -115,29 +166,43 @@ jobs:
make -j V=0
make -j check V=0
make -j install V=0
cd ..
- name: Upload log files
if: always()
uses: actions/upload-artifact@v4
with:
name: linux_install_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
linux-tarball:
runs-on: ubuntu-latest
name: Pack tarball on Linux
steps:

- name: Install system dependencies
run: |
sudo apt-get update -yq
sudo apt-get install -yq --no-install-recommends \
zlib1g-dev libmpich-dev mpich
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
submodules: true
fetch-depth: 0

- name: Identify version
shell: bash
run: |
git tag
git describe --abbrev=4 --match 'v*'
- name: Run bootstrap script
run: ./bootstrap

- name: Configure and make
shell: bash
run: |
Expand All @@ -149,9 +214,19 @@ jobs:
make -j check V=0
make -j distcheck V=0
mv p4est-*.tar.gz ..
cd ..
- name: Save tarball
uses: actions/upload-artifact@v2
- name: Upload tarball
uses: actions/upload-artifact@v4
with:
name: p4est_tarball
path: ./p4est-*.tar.gz

- name: Upload log files
if: always()
uses: actions/upload-artifact@v4
with:
name: linux_tarball_log
path: |
./**/config.log
./**/test-suite.log
./**/test/*.log
Loading

0 comments on commit ea50aee

Please sign in to comment.