Skip to content

Commit

Permalink
Integrate ci
Browse files Browse the repository at this point in the history
  • Loading branch information
gen740 committed Jan 24, 2024
1 parent ac83e76 commit 96dcc39
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 61 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/test-ubuntu.yml

This file was deleted.

52 changes: 50 additions & 2 deletions .github/workflows/test-mac.yml → .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests-Mac
name: Tests

on:
push:
Expand All @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
tests:
tests-mac:
runs-on: macos-latest

strategy:
Expand Down Expand Up @@ -69,3 +69,51 @@ jobs:
files: ./build/coverage.txt
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

tests-ubuntu:
runs-on: ubuntu-latest

strategy:
matrix:
build_type: [Release, Debug]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Upgrade apt
run: |
sudo apt update && sudo apt upgrade
- name: Install llvm
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh 17 all
rm llvm.sh
- name: Install cmake
run: |
wget -O cmake_install.sh https://github.com/Kitware/CMake/releases/download/v3.28.0/cmake-3.28.0-linux-x86_64.sh
chmod +x cmake_install.sh
sudo ./cmake_install.sh --prefix=/usr/local --skip-license
rm cmake_install.sh
- name: Install ninja
run: |
wget https://github.com/ninja-build/ninja/releases/download/v1.11.1/ninja-linux.zip
yes | sudo unzip ninja-linux.zip -d /usr/local/bin
- name: Build ${{ matrix.build_type }}
run: |
cmake -B build -S . -DARGO_TESTS_ENABLE=true -GNinja -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}
cmake --build build
env:
CC: /usr/bin/clang-17
CXX: /usr/bin/clang++-17
LDFLAGS: -L/usr/lib/llvm-17/lib
CPPFLAGS: -stdlib=libc++

- name: Test ${{ matrix.build_type }}
run: |
cmake --build build --target test

0 comments on commit 96dcc39

Please sign in to comment.