Update build-ubuntu.yml #7
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
name: build-ubuntu | |
# build on pushs and pull requests on main branch | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
architecture: [x64] #architecture: [x86, x64] | |
build-platform: [x64] #build-platform: [x86, x64] | |
steps: | |
# https://github.com/actions/checkout | |
- uses: actions/checkout@v4 | |
- name: Installing Latest GCC Compiler | |
run: | | |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test | |
sudo apt update | |
sudo apt install gcc-13 g++-13 | |
- name: Generate makefiles | |
run: | | |
mkdir cmake-build-debug && cd cmake-build-debug | |
cmake .. -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTS=ON | |
- name: Make tests | |
run: make tests/all -j$(nproc) | |
- name: Export TESTS_BOT_TOKEN to env | |
run: export TESTS_BOT_TOKEN=${{ secrets.TESTS_BOT_TOKEN }} | |
- name: Run CTest flow | |
run: make test |