Skip to content

Commit

Permalink
add native build workflow on ubuntu 22.04 and latest, both on clang a…
Browse files Browse the repository at this point in the history
…nd gcc
  • Loading branch information
patrickbr committed Oct 10, 2024
1 parent 367d0b5 commit ab68d62
Showing 1 changed file with 80 additions and 0 deletions.
80 changes: 80 additions & 0 deletions .github/workflows/native-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
name: Native build
'on':
- push
jobs:
ubuntu-20-04-build-gcc:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: update apt
run: sudo apt update
- name: install dependencies
run: sudo apt install -y gcc g++ libboost-dev libboost-serialization-dev libexpat1-dev cmake libbz2-dev zlib1g-dev libomp-dev
- name: cmake
run: mkdir build && cd build && cmake ..
- name: make
run: cd build && make
- name: tests
run: cd build && ctest --output-on-failure
ubuntu-latest-build-gcc:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: update apt
run: sudo apt update
- name: install dependencies
run: sudo apt install -y gcc g++ libboost-dev libboost-serialization-dev libexpat1-dev cmake libbz2-dev zlib1g-dev libomp-dev
- name: cmake
run: mkdir build && cd build && cmake ..
- name: make
run: cd build && make
- name: tests
run: cd build && ctest --output-on-failure
ubuntu-20-04-build-clang:
runs-on: ubuntu-20.04
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: update apt
run: sudo apt update
- name: install dependencies
run: sudo apt install -y clang libboost-dev libboost-serialization-dev libexpat1-dev cmake libbz2-dev zlib1g-dev libomp-dev
- name: cmake
run: mkdir build && cd build && cmake ..
shell: bash
env:
CC: clang
CXX: clang++
- name: make
run: cd build && make
- name: tests
run: cd build && ctest --output-on-failure
ubuntu-latest-build-clang:
runs-on: ubuntu-latest
steps:
- name: Checkout repository code
uses: actions/checkout@v2
- name: Checkout submodules
run: git submodule update --init --recursive
- name: update apt
run: sudo apt update
- name: install dependencies
run: sudo apt install -y clang libboost-dev libboost-serialization-dev libexpat1-dev cmake libbz2-dev zlib1g-dev libomp-dev
- name: cmake
run: mkdir build && cd build && cmake ..
shell: bash
env:
CC: clang
CXX: clang++
- name: make
run: cd build && make
- name: tests
run: cd build && ctest --output-on-failure

0 comments on commit ab68d62

Please sign in to comment.