Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

merge master #2

Merged
merged 41 commits into from
Jun 5, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
b9e3563
added bazel apt-key upgrade command
lamarrr Jun 2, 2020
c191962
Update c-cpp.yml
lamarrr Jun 2, 2020
8c0775b
Update c-cpp.yml
lamarrr Jun 2, 2020
dfea9dc
Update c-cpp.yml
lamarrr Jun 2, 2020
afd8fd1
added opensuse apt=key upgrade
lamarrr Jun 2, 2020
bffe5eb
Update c-cpp.yml
lamarrr Jun 2, 2020
563098c
Update c-cpp.yml
lamarrr Jun 2, 2020
02a43e7
Update c-cpp.yml
lamarrr Jun 3, 2020
88b3864
Update README.md
lamarrr Jun 3, 2020
423824e
created windows workflow
lamarrr Jun 3, 2020
ae825cc
Update windows.yml
lamarrr Jun 3, 2020
88be179
corrected build matrix properties
lamarrr Jun 3, 2020
b1663da
added ubuntu 20.04 to workflow matrix
lamarrr Jun 3, 2020
b092f86
added unmet dependencies fix
lamarrr Jun 3, 2020
a1df641
Temporarily disabled workflow for ubuntu 20.04
lamarrr Jun 3, 2020
747f520
Update windows.yml
lamarrr Jun 3, 2020
d34d834
Update windows.yml
lamarrr Jun 3, 2020
41de4e5
Update windows.yml
lamarrr Jun 3, 2020
d8ac600
Update windows.yml
lamarrr Jun 3, 2020
9cbdf26
Update windows.yml
lamarrr Jun 3, 2020
857a487
Update and rename c-cpp.yml to ubuntu-18.04
lamarrr Jun 3, 2020
8dcd327
Rename ubuntu-18.04 to ubuntu-18.04.yml
lamarrr Jun 3, 2020
98f6760
Update README.md
lamarrr Jun 3, 2020
ddd3272
created ubuntu 20.04 workflow
lamarrr Jun 3, 2020
c6dc468
made clang the compiler for ubuntu 20.04
lamarrr Jun 3, 2020
5d9c21e
Update ubuntu-20.04.yml
lamarrr Jun 3, 2020
d2036f5
Update ubuntu-20.04.yml
lamarrr Jun 3, 2020
82a0480
Update ubuntu-20.04.yml
lamarrr Jun 3, 2020
bc347ba
added ubuntu 20.04 workflow badge
lamarrr Jun 3, 2020
d53265c
added ubuntu 20.04 workflow badge
lamarrr Jun 3, 2020
ee9566b
added macos 10.15 workflow
lamarrr Jun 3, 2020
512cc6f
Update windows.yml
lamarrr Jun 3, 2020
7fe4bfa
Delete windows.yml
lamarrr Jun 3, 2020
95fc38c
added macos workflow test job
lamarrr Jun 3, 2020
953b165
Update macos-10.15.yml
lamarrr Jun 3, 2020
ea108f6
Update macos-10.15.yml
lamarrr Jun 3, 2020
0d67203
Update macos-10.15.yml
lamarrr Jun 3, 2020
008219f
added libstdc++ to macos workflow
lamarrr Jun 3, 2020
d849c51
added libstdc++ to macos workflow
lamarrr Jun 3, 2020
7f15340
removed stdlibc++ dep in macos-10.15
lamarrr Jun 3, 2020
03ee653
temporarily removed macos-10.15 workflow
lamarrr Jun 3, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 15 additions & 8 deletions .github/workflows/c-cpp.yml → .github/workflows/ubuntu-18.04.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: tests_ubuntu
name: tests:ubuntu-18.04

on:
push:
Expand All @@ -13,14 +13,21 @@ jobs:
strategy:
matrix:
build_mode: ["Release", "Debug"]
no_panic_backtrace: ["ON", "OFF"]
no_backtrace: ["ON", "OFF"]
panic_backtrace: ["ON", "OFF"]
backtrace: ["ON", "OFF"]

steps:
- uses: actions/checkout@v2


- name: Upgrade Bazel apt-key
run: curl https://bazel.build/bazel-release.pub.gpg | sudo apt-key add -

- name: Upgrade Opensuse apt-key
run: wget http://download.opensuse.org/repositories/home:/strycore/xUbuntu_18.04/Release.key && sudo apt-key add Release.key


- name: apt-update (1)
run: sudo apt --allow-unauthenticated update
run: sudo apt --allow-unauthenticated update --allow-insecure-repositories

- name: Install add-apt-repository
run: sudo apt --allow-unauthenticated install software-properties-common
Expand All @@ -29,16 +36,16 @@ jobs:
run: sudo add-apt-repository "deb http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main" # && sudo add-apt-repository "deb-src http://apt.llvm.org/bionic/ llvm-toolchain-bionic-10 main"

- name: apt-update (2)
run: sudo apt --allow-unauthenticated update
run: sudo apt --allow-unauthenticated update --allow-insecure-repositories

- name: Install LLVM tools and Ninja-Build
run: sudo apt install ninja-build clang-format-10 clang-tidy-10 clang-tools-10 clang-10 clangd-10 libc++-10-dev libc++1-10 libc++abi-10-dev libc++abi1-10 libclang-10-dev libclang1-10 liblldb-10-dev lld-10 lldb-10 llvm-10-dev llvm-runtime llvm-10
run: sudo apt install -f ninja-build clang-format-10 clang-tidy-10 clang-tools-10 clang-10 clangd-10 libc++-10-dev libc++1-10 libc++abi-10-dev libc++abi1-10 libclang-10-dev libclang1-10 liblldb-10-dev lld-10 lldb-10 llvm-10-dev llvm-runtime llvm-10

- name: Configure Build Directory
run: mkdir build

- name: Initialize CMake
run: cd build && export CC=clang-10 CXX=clang++-10 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.no_backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.no_panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -GNinja
run: cd build && export CC=clang-10 CXX=clang++-10 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -GNinja

- name: Run Unsanitized Tests
run: cd build && ninja run_tests
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/ubuntu-20.04.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: tests:ubuntu-20.04

on:
push:
branches: [master]
pull_request:
branches: [master]

jobs:
build:
runs-on: ubuntu-20.04

strategy:
matrix:
build_mode: ["Release", "Debug"]
panic_backtrace: ["ON", "OFF"]
backtrace: ["ON", "OFF"]

steps:
- uses: actions/checkout@v2

- name: Install Ninja-Build & Clang-10
run: sudo apt update && sudo apt install -f ninja-build clang-10

- name: Configure Build Directory
run: mkdir build

- name: Initialize CMake
run: cd build && export CC=clang-10 CXX=clang++-10 && cmake .. -DCMAKE_BUILD_TYPE=${{ matrix.build_mode }} -DSTX_BUILD_TESTS=ON -DSTX_ENABLE_BACKTRACE=${{ matrix.backtrace }} -DSTX_ENABLE_PANIC_BACKTRACE=${{ matrix.panic_backtrace }} -DSTX_SANITIZE_TESTS=ON -GNinja

- name: Run Unsanitized Tests
run: cd build && ninja run_tests

- name: Run Address-sanitized Tests
run: cd build && ninja stx_tests_address_sanitized && ./stx_tests_address_sanitized

- name: Run Leak-sanitized Tests
run: cd build && ninja stx_tests_leak_sanitized && ./stx_tests_leak_sanitized

- name: Run Thread-sanitized Tests
run: cd build && ninja stx_tests_thread_sanitized && ./stx_tests_thread_sanitized

- name: Run Undefined-sanitized Tests
run: cd build && ninja stx_tests_undefined_sanitized && ./stx_tests_undefined_sanitized
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<img src="https://github.com/lamarrr/STX/workflows/tests_ubuntu/badge.svg">
<img src="https://github.com/lamarrr/STX/workflows/tests:ubuntu-18.04/badge.svg"> <img src="https://github.com/lamarrr/STX/workflows/tests:ubuntu-20.04/badge.svg">


<br/>
<div align="center"><img src="assets/stx.png"/> </div>

Expand Down