Skip to content

Commit

Permalink
fix #702 remove Ubuntu 18.04 CI on github (#721)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelson-numerical-software committed Aug 31, 2022
1 parent 2a010c1 commit ea8f29d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 101 deletions.
99 changes: 0 additions & 99 deletions .github/workflows/ccpp.yml
Expand Up @@ -383,105 +383,6 @@ jobs:
name: nelson-github-action-artifacts-linux-ubuntu-20-04-amd64-${{env.PACKAGE_VERSION}}.${{ github.run_number }}
path: artifacts/

Bionic:
name: Ubuntu-18.04 bionic
runs-on: ubuntu-18.04
timeout-minutes: 120

steps:
- name: install dependencies
run: |
curl https://packages.microsoft.com/config/ubuntu/18.04/multiarch/prod.list > ./microsoft-prod.list
sudo cp ./microsoft-prod.list /etc/apt/sources.list.d/
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo cp ./microsoft.gpg /etc/apt/trusted.gpg.d/
sudo apt update
sudo apt upgrade
sudo apt install apt-transport-https ca-certificates gnupg software-properties-common wget ;
sudo add-apt-repository --yes ppa:ubuntu-toolchain-r/test
sudo apt update
sudo apt upgrade
sudo add-apt-repository --yes ppa:mhier/libboost-latest
sudo apt-get update -y
sudo add-apt-repository --yes ppa:cran/libgit2
sudo apt-get update -y
sudo apt-get install -f -y libboost1.68-dev
sudo apt-get install -y libopenmpi-dev
sudo apt-get install -y openmpi-bin
sudo apt-get install -y gettext
sudo apt-get install -y pkg-config
sudo apt-get install -y libffi-dev
sudo apt-get install -y libhdf5-dev
sudo apt-get install -y hdf5-tools
sudo apt-get install -y libicu-dev
sudo apt-get install -y libxml2-dev
sudo apt-get install -y liblapack-dev
sudo apt-get install -y liblapacke-dev
sudo apt-get install -y fftw3
sudo apt-get install -y fftw3-dev
sudo apt-get install -y libasound-dev
sudo apt-get install -y portaudio19-dev
sudo apt-get install -y libsndfile1-dev
sudo apt-get install -y libtag1-dev
sudo apt-get install -y alsa-utils
sudo apt-get install -y libcurl4-openssl-dev
sudo apt-get install -y libgit2-dev
sudo apt install -y gcc-10
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-10 10000 --slave /usr/bin/g++ g++ /usr/bin/g++-10
export BUILD_ROOT=$(pwd);
cd && mkdir -p repos && cd repos
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -
sudo apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
sudo apt-get update
sudo apt install -y cmake
hash -r
git clone https://github.com/eigenteam/eigen-git-mirror /tmp/eigen && mkdir /tmp/eigen-build && cd /tmp/eigen && git checkout 3.3.4 && cd - && cd /tmp/eigen-build && cmake . /tmp/eigen && make -j4 && sudo make install && cd -
git clone https://github.com/HDFGroup/hdf5.git /tmp/hdf5-1_12_1
cd /tmp/hdf5-1_12_1 && git checkout hdf5-1_12_1 && ./configure --quiet --enable-shared --disable-deprecated-symbols --disable-hl --disable-strict-format-checks --disable-memory-alloc-sanity-check --disable-instrument --disable-parallel --disable-trace --disable-asserts --with-pic --with-default-api-version=v112 CFLAGS="-w" && sudo make install -C src
git clone https://github.com/tbeu/matio /tmp/matio
cd /tmp/matio && git checkout v1.5.21 && cd /tmp/matio && ./autogen.sh && ./configure --enable-shared --enable-mat73=yes --enable-extended-sparse=no --with-pic --with-hdf5=/tmp/hdf5-1_12_1/hdf5 && make && sudo make install;
- name: Install Qt 5.15.2
uses: jurplel/install-qt-action@v2
with:
version: "5.15.2"
host: "linux"
target: "desktop"
install-deps: "true"
modules: "qtwebengine"
cached: "false"
setup-python: "false"

- name: Checkout
uses: actions/checkout@v2
- name: Get package version
uses: nyaascii/package-version@v1
- name: Update version
run: |
python $GITHUB_WORKSPACE/tools/update_version/update_version.py
- name: CMake
run: cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release -DWITH_SLICOT=OFF .
- name: make with CMake
run: cmake --build . -- -j $(nproc)
- name: build help
run: cmake --build . -- buildhelp
- name: minimal tests
run: cmake --build . -- tests_minimal
- name: package
run: cmake --build . -- package
- name: Install
run: sudo cmake --build . -- install
- name: all benchs
run: xvfb-run -a make benchs_all
- name: all tests
run: xvfb-run -a make tests_all
- name: Copy artifacts
run: mkdir artifacts && mv tests_all*.* artifacts && mv benchs_all*.* artifacts && mv Nelson-*.tar.Z artifacts
- uses: actions/upload-artifact@v1
with:
name: nelson-github-action-artifacts-ubuntu-18.4_amd64-${{env.PACKAGE_VERSION}}.${{ github.run_number }}
path: artifacts/

ArchLinux:
runs-on: ubuntu-latest
container: archlinux:latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql-analysis-cpp.yml
Expand Up @@ -32,7 +32,7 @@ jobs:
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-20220825/codeql-bundle-linux64.tar.gz
tools: https://github.com/github/codeql-action/releases/download/codeql-bundle-20220825/codeql-bundle-linux64.tar.gz
languages: ${{ matrix.language }}
queries: security-extended,security-and-quality

Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -25,6 +25,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

- assign behavior with empty matrix.

- [#702](http://github.com/Nelson-numerical-software/nelson/issues/702): Ubuntu 18.04 CI removed on Github.

## 0.6.8 (2022-08-27)

### Added
Expand Down
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -157,7 +157,7 @@ The systems listed here without CI or binaries are known to build and operate, b
| MacOS BigSur | x86-64 (64-bit) || |
| Ubuntu 22.04 | x86-64 (64-bit) || ✓ (snap) |
| Ubuntu 20.04 | x86-64 (64-bit) || ✓ (snap) |
| Ubuntu 18.04 | x86-64 (64-bit) | | ✓ (snap) |
| Ubuntu 18.04 | x86-64 (64-bit) | | ✓ (snap) |
| ArchLinux | x86-64 (64-bit) || ✓ (snap) |
| Fedora 36 | x86-64 (64-bit) || ✓ (snap) |
| Raspbian | ARM v8 (64-bit) | | |
Expand Down

0 comments on commit ea8f29d

Please sign in to comment.