Skip to content

Commit

Permalink
Install with pip -U
Browse files Browse the repository at this point in the history
Use default compiler on CI

use [email protected]:mirror
  • Loading branch information
ClausKlein committed Feb 15, 2024
1 parent 27d8c19 commit 3e282e3
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@ Checks:
HeaderFilterRegex:
'.*'

#TODO: this isn't realy pedantic tody! CK
#TODO: this isn't realy pedantic today! CK
WarningsAsErrors:
'*'
25 changes: 15 additions & 10 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,22 @@ jobs:
"**/cpm_modules"
key: ${{ github.workflow }}-cpm-modules-${{ hashFiles('**/CMakeLists.txt', '**/*.cmake') }}

- uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip' # caching pip dependencies
# - uses: actions/setup-python@v4
# with:
# python-version: '3.11'
# cache: 'pip' # caching pip dependencies
# # pip but doesn't exist on disk: /home/runner/.cache/pip

- run: |
sudo python -m pip install --upgrade pip
sudo pip install -r requirements.txt
- name: Setup python3
run: |
sudo python3 -m pip install --upgrade pip
sudo python3 -m pip install -U -r requirements.txt
# /root/.cache/pip/
- name: Setup Cpp
if: startsWith(matrix.os, 'ubuntu')
uses: aminya/setup-cpp@v1
with:
llvm: true
ccache: true
clangtidy: true
clangformat: true

Expand All @@ -69,7 +70,11 @@ jobs:
sudo apt-get install libboost-filesystem-dev
- name: Configure CMake
run: cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
run: |
which cmake ninja
cmake --version
cmake --version
cmake -G Ninja -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.BUILD_TYPE}}
- name: Build
# Build your program with the given configuration
Expand Down
18 changes: 0 additions & 18 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,11 @@ variables:
CICD_PASSWORD: $SERVICE_USER_API_KEY

default:
<<<<<<< HEAD
image: saas-linux-small-amd64
tags: [linux]
before_script: |
export PATH="$HOME/.local/bin:$PATH"
pip install -U -r requirements.txt
=======
image: docker.rsint.net/rs_common/rs-ubuntu:22.04-buildessential-2023-07-02
tags: [linux-container]
before_script:
- echo -e "\e[0Ksection_start:`date +%s`:my_setup_linux[collapsed=true]\r\e[0KHeader of the setup linux collapsible section"
- export PATH="$HOME/.local/bin:$PATH"
- sudo ln -s /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- sudo apt update
- sudo apt install --assume-yes clang-tidy python3-pip libboost-filesystem-dev
- python3 -m pip install -U -r requirements.txt
- echo -e "\e[0Ksection_end:`date +%s`:my_setup_linux\r\e[0K"
# - git config --global [email protected]:mirror/github.com/.insteadOf https://github.com/
- git config --global user.name "Claus Klein"
- git config --global user.email "[email protected]"
- git config --global -l
- git clone https://github.com/aminya/project_options.git
>>>>>>> 2d8f8eb (update git config settings for gitlab CI)
.standard-rules: # Make a hidden job to hold the common rules
rules:
Expand Down
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,10 @@ if(NETKIT_TFTP_TESTS)

add_executable(option_test option_test.cpp async_tftpd_server.hpp)
target_link_libraries(option_test PRIVATE tftpd)
# FIXME add_test(NAME option_test COMMAND option_test)

if(NOT DEFINED ENV{CI})
add_test(NAME option_test COMMAND option_test)
endif()

add_executable(tftpd_test tftpd_test.cpp async_tftpd_server.hpp)
target_link_libraries(tftpd_test PRIVATE tftpd)
Expand Down
6 changes: 3 additions & 3 deletions GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ PROJECT_NAME:=$(shell basename $${PWD})
# prevent hard config of find_package(asio 1.14.1 CONFIG CMAKE_FIND_ROOT_PATH_BOTH)
ifeq (NO${CROSS_COMPILE},NO)
ifeq (${UNAME},Darwin)
#TODO CC:=/usr/local/opt/llvm/bin/clang
#TODO CXX:=/usr/local/opt/llvm/bin/clang++
CC:=/usr/bin/gcc
CXX:=/usr/bin/g++
BOOST_ROOT:=/usr/local/opt/boost
export BOOST_ROOT
endif
Expand All @@ -44,7 +44,7 @@ endif
#NO! BUILD_TYPE=Coverage make lcov
BUILD_TYPE?=Debug
BUILD_TYPE?=Release
# GENERATOR:=Xcode
GENERATOR:=Xcode
GENERATOR?=Ninja

# end of config part
Expand Down

0 comments on commit 3e282e3

Please sign in to comment.