Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
biojppm committed Feb 5, 2025
1 parent 97680a6 commit a692c01
Show file tree
Hide file tree
Showing 12 changed files with 281 additions and 146 deletions.
4 changes: 2 additions & 2 deletions .github/toolchains/loongarch64.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ set(CMAKE_SYSTEM_PROCESSOR loongarch64)

set(CMAKE_CROSSCOMPILING TRUE)

set(CMAKE_C_COMPILER /usr/bin/loongarch64-linux-gnu-gcc)
set(CMAKE_CXX_COMPILER /usr/bin/loongarch64-linux-gnu-g++)
set(CMAKE_C_COMPILER /usr/bin/loongarch64-linux-gnu-gcc-14)
set(CMAKE_CXX_COMPILER /usr/bin/loongarch64-linux-gnu-g++-14)

set(CMAKE_FIND_ROOT_PATH /usr/loongarch64-linux-gnu/)
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows-in/clang_tidy.ys
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ jobs:
fail-fast: false
matrix:
include:
- {std: 11, clang: 18, bt: Debug, bits: 64}
- {std: 11, clang: 18, bt: Debug , bits: 64}
- {std: 11, clang: 18, bt: Release, bits: 64}
env:: load('share/env.yaml')
steps:
- :: checkout-action-docker
Expand Down
75 changes: 40 additions & 35 deletions .github/workflows-in/gcc.ys
Original file line number Diff line number Diff line change
Expand Up @@ -53,50 +53,55 @@ jobs:
#----------------------------------------------------------------------------
extended:
:: setup-job("gcc" "canary")
name: extended/${{matrix.cxx}}/c++${{matrix.std}}/${{matrix.bt}}/vg${{matrix.vg}}
name: extended/${{matrix.cxx}}/${{matrix.bits}}bit/c++${{matrix.std}}/vg${{matrix.vg}}
:: runs-on-docker-c4core('${{matrix.img}}')
strategy:
fail-fast: false
matrix:
include:
# VALGRIND
- {std: 11, cxx: g++-14 , bt: Debug , vg: ON , img: 22.04}
- {std: 11, cxx: g++-14 , bt: Release, vg: ON , img: 22.04}
- {std: 14, cxx: g++-14 , bt: Debug , vg: ON , img: 22.04}
- {std: 14, cxx: g++-14 , bt: Release, vg: ON , img: 22.04}
- {std: 17, cxx: g++-14 , bt: Debug , vg: ON , img: 22.04}
- {std: 17, cxx: g++-14 , bt: Release, vg: ON , img: 22.04}
- {std: 20, cxx: g++-14 , bt: Debug , vg: ON , img: 22.04}
- {std: 20, cxx: g++-14 , bt: Release, vg: ON , img: 22.04}
#
- {std: 11, cxx: g++-13 , bt: Debug , vg: OFF, img: 22.04}
- {std: 11, cxx: g++-13 , bt: Release, vg: OFF, img: 22.04}
- {std: 11, cxx: g++-13 , bt: Debug , vg: OFF, img: 22.04}
- {std: 11, cxx: g++-13 , bt: Release, vg: OFF, img: 22.04}
- {std: 11, cxx: g++-11 , bt: Debug , vg: OFF, img: 22.04}
- {std: 11, cxx: g++-11 , bt: Release, vg: OFF, img: 22.04}
- {std: 11, cxx: g++-10 , bt: Debug , vg: OFF, img: 22.04}
- {std: 11, cxx: g++-10 , bt: Release, vg: OFF, img: 22.04}
- {std: 11, cxx: g++-9 , bt: Debug , vg: OFF, img: 22.04}
- {std: 11, cxx: g++-9 , bt: Release, vg: OFF, img: 22.04}
- {std: 11, cxx: g++-8 , bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-8 , bt: Release, vg: OFF, img: 18.04}
- {std: 11, cxx: g++-7 , bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-7 , bt: Release, vg: OFF, img: 18.04}
- {std: 11, cxx: g++-6 , bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-6 , bt: Release, vg: OFF, img: 18.04}
- {std: 11, cxx: g++-5 , bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-5 , bt: Release, vg: OFF, img: 18.04}
- {std: 11, cxx: g++-4.9, bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-4.9, bt: Release, vg: OFF, img: 18.04}
- {std: 11, cxx: g++-4.8, bt: Debug , vg: OFF, img: 18.04}
- {std: 11, cxx: g++-4.8, bt: Release, vg: OFF, img: 18.04}
# with valgrind: only latest gcc
# VALGRIND
- {std: 11, cxx: 14 , bits: 64, vg: ON , img: 22.04}
- {std: 11, cxx: 14 , bits: 32, vg: ON , img: 22.04}
- {std: 14, cxx: 14 , bits: 64, vg: ON , img: 22.04}
- {std: 14, cxx: 14 , bits: 32, vg: ON , img: 22.04}
- {std: 17, cxx: 14 , bits: 64, vg: ON , img: 22.04}
- {std: 17, cxx: 14 , bits: 32, vg: ON , img: 22.04}
- {std: 20, cxx: 14 , bits: 64, vg: ON , img: 22.04}
- {std: 20, cxx: 14 , bits: 32, vg: ON , img: 22.04}
# without valgrind
- {std: 11, cxx: 13 , bits: 64, vg: OFF, img: 22.04}
- {std: 11, cxx: 13 , bits: 32, vg: OFF, img: 22.04}
- {std: 11, cxx: 13 , bits: 64, vg: OFF, img: 22.04}
- {std: 11, cxx: 13 , bits: 32, vg: OFF, img: 22.04}
- {std: 11, cxx: 11 , bits: 64, vg: OFF, img: 22.04}
- {std: 11, cxx: 11 , bits: 32, vg: OFF, img: 22.04, extra_flags: -Wno-stringop-overflow}
- {std: 11, cxx: 10 , bits: 64, vg: OFF, img: 22.04}
- {std: 11, cxx: 10 , bits: 32, vg: OFF, img: 22.04}
- {std: 11, cxx: 9 , bits: 64, vg: OFF, img: 22.04}
- {std: 11, cxx: 9 , bits: 32, vg: OFF, img: 22.04}
- {std: 11, cxx: 8 , bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 8 , bits: 32, vg: OFF, img: 18.04}
- {std: 11, cxx: 7 , bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 7 , bits: 32, vg: OFF, img: 18.04}
- {std: 11, cxx: 6 , bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 6 , bits: 32, vg: OFF, img: 18.04}
- {std: 11, cxx: 5 , bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 5 , bits: 32, vg: OFF, img: 18.04}
- {std: 11, cxx: 4.9, bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 4.9, bits: 32, vg: OFF, img: 18.04}
- {std: 11, cxx: 4.8, bits: 64, vg: OFF, img: 18.04}
- {std: 11, cxx: 4.8, bits: 32, vg: OFF, img: 18.04}
env:: load('share/env.yaml')
steps:
- :: checkout-manual
- name: install
run: c4core-install ${{matrix.cxx}}
- :: run-steps
run: c4core-install g++-${{matrix.cxx}}
- :: run-gcc-manual-with-flags('Debug' '-m${{matrix.bits}} ${{matrix.extra_flags}}')
- :: run-gcc-manual-with-flags('Release' '-O1 -DNDEBUG -m${{matrix.bits}} ${{matrix.extra_flags}}')
- :: run-gcc-manual-with-flags('Release' '-O2 -DNDEBUG -m${{matrix.bits}} ${{matrix.extra_flags}}')
- :: run-gcc-manual-with-flags('Release' '-O3 -DNDEBUG -m${{matrix.bits}} ${{matrix.extra_flags}}')
- :: run-gcc-manual-with-flags('Release' '-Os -DNDEBUG -m${{matrix.bits}} ${{matrix.extra_flags}}')

#----------------------------------------------------------------------------
gccsan:
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows-in/release.ys
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,11 @@ jobs:
fail-fast: false
matrix:
config:
# name of the artifact | suffix (gen) | suffix (package) | cpack gen | mime type | os | cxx
# name of the artifact | suffix (gen) | suffix (package) | cpack gen | mime type | os | cxx
- {name: Ubuntu 24.04 deb , sfxg: unix64-shared-Release.deb, sfxp: ubuntu-24.04.deb , gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-24.04 }
- {name: Ubuntu 22.04 deb , sfxg: unix64-shared-Release.deb, sfxp: ubuntu-22.04.deb , gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-22.04 }
- {name: Ubuntu 20.04 deb , sfxg: unix64-shared-Release.deb, sfxp: ubuntu-20.04.deb , gen: DEB , mime: vnd.debian.binary-package, os: ubuntu-20.04 }
- {name: Windows VS2022 zip, sfxg: win64-shared-Release.zip , sfxp: windows-vs2022.zip , gen: ZIP , mime: zip , os: windows-2022, cxx: vs2022}
- {name: Windows VS2019 zip, sfxg: win64-shared-Release.zip , sfxp: windows-vs2019.zip , gen: ZIP , mime: zip , os: windows-2019, cxx: vs2019}
- {name: MacOSX sh , sfxg: apple64-shared-Release.sh, sfxp: macosx-xcode.sh , gen: STGZ , mime: x-sh , os: macos-13 , cxx: xcode }
steps:
Expand All @@ -86,7 +89,7 @@ jobs:
cp -fav $asset_src $asset_dst
- name: Save artifacts
uses: actions/upload-artifact@v4
with: {name: assets-cpp, path: assets}
with: {name: "assets-cpp-${{matrix.os}}-${{matrix.cxx}}", path: assets}

#----------------------------------------------------------------------------
merge_artifacts:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows-in/windows.ys
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- {std: 20, cxx: vs2022, bt: Release, os: windows-2022, bitlinks: shared64 static32}
# https://learn.microsoft.com/en-us/cpp/build/reference/eh-exception-handling-model?view=msvc-170
# https://learn.microsoft.com/en-us/cpp/build/reference/gr-enable-run-time-type-information?view=msvc-170
env: {CXXFLAGS: "/EHa- /EHs- /EHc /EHr- /GR- /wd4530", STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
env: {CXXFLAGS: "/EHa- /EHs- /EHc /EHr- /GR- /wd4530 /wd9002 /wd9025", STD: "${{matrix.std}}", CXX_: "${{matrix.cxx}}", BT: "${{matrix.bt}}", BITLINKS: "${{matrix.bitlinks}}", VG: "${{matrix.vg}}", SAN: "${{matrix.san}}", LINT: "${{matrix.lint}}", OS: "${{matrix.os}}"}
steps:
- :: checkout-action
- {name: install requirements, run: source .github/reqs.sh && c4_install_test_requirements $OS}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/arch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ jobs:
- arch: armv4
tc: arm-linux-gnueabi
flags: -march=armv4
- arch: loongarch64
tc: 14-loongarch64-linux-gnu
- arch: mips
tc: mips-linux-gnu
- arch: mipsel
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
clang: 18
bt: Debug
bits: 64
- std: 11
clang: 18
bt: Release
bits: 64
env:
STD: ${{matrix.std}}
CXX_: ${{matrix.cxx}}
Expand Down
Loading

0 comments on commit a692c01

Please sign in to comment.