-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add native build workflow on ubuntu 22.04 and latest, both on clang a…
…nd gcc
- Loading branch information
Showing
1 changed file
with
80 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |