- update deps (e.g. compilers, cppcheck); vezi issue
- de documentat asta (trebuie săpat prin proiectele din 2022-2023 sem 2): 6e13486
- de văzut dacă mai e nevoie de env_fixes.h -> de reprodus bug-ul inițial pe sfml 2.5.1 și apoi același exemplu cu sfml 2.6.x
- nu instala ninja
pe msvc cu choco
- copiază dll-urile corecte; done (dar poate mai trebuie verificat)
- name: Copy stdlib (MinGW)
if: runner.os == 'Windows' && matrix.cxx == 'g++'
# static linking might not work with MinGW, might be easier this way
run: |
cp gcc/mingw64/bin/libstdc++-6.dll \
gcc/mingw64/bin/libgcc_s_seh-1.dll \
gcc/mingw64/bin/libwinpthread-1.dll \
${GITHUB_WORKSPACE}/${{ env.ZIP_NAME }}
set(CMAKE_INSTALL_PREFIX "${PROJECT_SOURCE_DIR}/install_dir" CACHE PATH "..." FORCE)
Tema 2: de scris un pic alternativă la cast cu dynamic_pointer_cast pt shared_ptr
Tema 3: exemplu de mixin: countable pt numărat totalul de obiecte; crtp ar fi modificări la structură, mixin ar fi modificări la comportament
Dezavantaje singleton cu CRTP: https://codereview.stackexchange.com/questions/255212/generic-meyers-singleton-implementation-in-c
Ezoterisme: https://stackoverflow.com/questions/3499101/when-do-we-need-a-template-construct
Make variable for archive name, move tag at the end of the name ✔️
Clang 14 -> clang 12 în cmakelists.txt:97 ✔️
Retention 15 days ✔️
Rename bin/ to archive name ✔️
Matrix params for valgrind, sanitizers etc ✔️
NOTE!
valgrind cat tastatura.txt | ./main would detect leaks for cat! We must run cat tastatura.txt | valgrind ./main
- shallow clone in fetchcontent ✔️
Merging branches
# from main branch:
git merge --allow-unrelated-histories --strategy-option=theirs origin/sfml
# or the long way
git merge --allow-unrelated-histories origin/sfml
git checkout --theirs .
git add .
git commit -m "Add SFML lib"
Testing ssh with custom ssh key:
ssh -i ~/.ssh/gh_ed25519 -T git@github.com
Cloning with custom ssh key:
# -c sau --config
# -i de la identity
git clone -c core.sshCommand="ssh -i ~/.ssh/gh_ed25519" git@github.com:user/repo.git
jobs:
build:
name: ...
runs-on: ...
permissions:
contents: write
- name: Copy missing dlls
if: runner.os == 'Windows' && matrix.cxx == 'cl'
run: |
cp $(where ucrtbased.dll) \
$(where VCRUNTIME140_1D.dll) \
$(where MSVCP140D.dll) \
$(where VCRUNTIME140D.dll) \
artifacts/bin/
pe msvccu chococheckoute deja implicit 1with: fetch-depth: 1change release action to this one since the current one seems unmaintained; quick temp workaround: https://github.com/timheuer/action-gh-releaseoriginal action has been updatedsf::Drawablesausf::Shape)_depspe cppcheck/clang-tidyTema 2: de scris un pic alternativă la cast cu dynamic_pointer_cast pt shared_ptr
Tema 3: exemplu de mixin: countable pt numărat totalul de obiecte; crtp ar fi modificări la structură, mixin ar fi modificări la comportament
Dezavantaje singleton cu CRTP: https://codereview.stackexchange.com/questions/255212/generic-meyers-singleton-implementation-in-c
Ezoterisme: https://stackoverflow.com/questions/3499101/when-do-we-need-a-template-construct
Make variable for archive name, move tag at the end of the name ✔️
Clang 14 -> clang 12 în cmakelists.txt:97 ✔️
Retention 15 days ✔️
Rename bin/ to archive name ✔️
Matrix params for valgrind, sanitizers etc ✔️
NOTE!
valgrind cat tastatura.txt | ./mainwould detect leaks forcat! We must runcat tastatura.txt | valgrind ./mainMerging branches
Testing ssh with custom ssh key:
ssh -i ~/.ssh/gh_ed25519 -T git@github.comCloning with custom ssh key:
kbhitandclsWIN32_MEAN_AND_LEANandNOMINMAXin rlutil and csv-parser.github/workflows/cmake.ymlintoscripts/try to fork & migrate some deps to ucrttarget_compile_features(target PRIVATE cxx_std_20)/wd4244 /wd4267/fsanitize=addresscompiler flag in MSVC and run the executabledate.txttotastatura.txtgit clone --depth=1 --branch=llvmorg-11.1.0 https://github.com/llvm/llvm-project