Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
12 changes: 2 additions & 10 deletions .github/workflows/distro-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,12 @@ jobs:
config:
- tag: fedora
name: Fedora
- tag: debian-stable
name: Debian Stable
- tag: debian-unstable
name: Debian Unstable
- tag: debian
name: Debian
- tag: archlinux
name: Arch Linux
- tag: gentoo-glibc
name: Gentoo GLibc
# - tag: gentoo-musl
# name: Gentoo Musl
# - tag: alpine
# name: Alpine
- tag: ubuntu
name: Ubuntu

steps:
- run: |
Expand Down
62 changes: 4 additions & 58 deletions .github/workflows/docker-autobuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
- cron: "0 0 */7 * *"
push:
paths:
- 'docker/**'
- "docker/**"

permissions:
contents: read
Expand All @@ -19,19 +19,13 @@ jobs:
config:
- tag: fedora
name: Fedora
- tag: debian-stable
name: Debian Stable
- tag: debian-unstable
name: Debian Unstable
- tag: debian
name: Debian
- tag: archlinux
name: Arch Linux
- tag: gentoo-glibc
name: Gentoo GLibc
- tag: alpine
name: Alpine
- tag: ubuntu
name: Ubuntu


steps:
- name: Install Docker Buildx
uses: docker/setup-buildx-action@v3
Expand All @@ -54,51 +48,3 @@ jobs:
context: "{{ defaultContext }}:docker/${{ matrix.config.tag }}"
push: true
tags: hyperwin/hcpu-ci:${{ matrix.config.tag }}

build-gentoo-musl-stage1:
runs-on: ubuntu-latest
name: "Update Gentoo Musl Docker image - stage 1"
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: hyperwin
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: true

- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{ defaultContext }}:docker/gentoo-musl/stage1"
push: true
tags: hyperwin/hcpu-ci:gentoo-musl-build

build-gentoo-musl-stage2:
runs-on: ubuntu-latest
name: "Update Gentoo Musl Docker image - stage 2"
needs: build-gentoo-musl-stage1
steps:
- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: hyperwin
password: ${{ secrets.DOCKERHUB_PASSWORD }}

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
submodules: true

- name: Build and push
uses: docker/build-push-action@v6
with:
context: "{{ defaultContext }}:docker/gentoo-musl/stage2"
push: true
tags: hyperwin/hcpu-ci:gentoo-musl

6 changes: 2 additions & 4 deletions .github/workflows/run-tests-feature-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,8 @@ jobs:

- name: Build and test with GCC on Release profile
run: |
bazelisk test //src/... //tests/... --config=linux-dbg --compiler=gcc
bazelisk clean --expunge
CC=gcc bazelisk test //src/... //tests/... --config=linux-dbg

- name: Build and test with LLVM on Release profile
run: |
bazelisk test //src/... //tests/... --config=linux-dbg --compiler=clang
bazelisk clean --expunge
CC=clang bazelisk test //src/... //tests/... --config=linux-dbg
12 changes: 4 additions & 8 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,20 +26,16 @@ jobs:

- name: Build and test with GCC on Debug profile
run: |
bazelisk test //src/... //tests/... --config=linux-dbg --compiler=gcc
bazelisk clean --expunge
CC=gcc bazelisk test //src/... //tests/... --config=linux-dbg

- name: Build and test with GCC on Release profile
run: |
bazelisk test //src/... //tests/... --config=linux-opt --compiler=gcc
bazelisk clean --expunge
CC=gcc bazelisk test //src/... //tests/... --config=linux-opt

- name: Build and test with LLVM on Debug profile
run: |
bazelisk test //src/... //tests/... --config=linux-dbg --compiler=clang
bazelisk clean --expunge
CC=clang bazelisk test //src/... //tests/... --config=linux-dbg

- name: Build and test with LLVM on Release profile
run: |
bazelisk test //src/... //tests/... --config=linux-opt --compiler=clang
bazelisk clean --expunge
CC=clang bazelisk test //src/... //tests/... --config=linux-opt
15 changes: 7 additions & 8 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,23 +10,22 @@ module(
conan = use_extension("//conan:conan_deps_module_extension.bzl", "conan_extension")
use_repo(
conan,
"abseil",
"argparse",
"benchmark",
"boost",
"bzip2",
"eternal",
"fmt",
"gtest",
"libbacktrace",
"libunwind",
"re2",
"spdlog",
"xz_utils",
"zlib",
)

bazel_dep(name = "rules_cc", version = "0.0.17")
bazel_dep(name = "boost.system", version = "1.87.0")
bazel_dep(name = "argparse", version = "3.0.0")
bazel_dep(name = "google_benchmark", version = "1.9.2")
bazel_dep(name = "googletest", version = "1.17.0")
bazel_dep(name = "re2", version = "2024-07-02.bcr.1")

bazel_dep(name = "rules_cc", version = "0.1.1")
bazel_dep(name = "aspect_rules_lint", version = "1.3.5")
bazel_dep(name = "bazel_skylib", version = "1.7.1")

Expand Down
6 changes: 0 additions & 6 deletions conandata.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
requirements:
gtest: "1.14.0"
benchmark: "1.9.1"
abseil: "20240116.1"
libbacktrace: "cci.20210118"
argparse: "3.2"
eternal: "1.0.1"
re2: "20230801"
fmt: "11.0.2"
libunwind: "1.8.1"
boost: "1.87.0"
spdlog: "1.15.0"
8 changes: 4 additions & 4 deletions src/PCH/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
load("//tools/bazel:pch.bzl", "precompiled_headers")
load("@rules_cc//cc:defs.bzl", "cc_library")

precompiled_headers(
cc_library(
name = "pch_cstd",
main = "CStd.hpp",
visibility = ["//visibility:public"],
hdrs = ["CStd.hpp"],
visibility = ["//visibility:public"]
)
17 changes: 3 additions & 14 deletions src/Pog/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools/bazel:pch.bzl", "precompiled_headers")

cc_library(
name = "pog_core",
name = "pog",
hdrs = glob(
["**/*.hpp"],
exclude = ["Pog.hpp"],
["**/*.hpp"]
),
visibility = ["//visibility:private"],
visibility = ["//visibility:public"],
deps = [
"@fmt",
"@re2",
],
)

precompiled_headers(
name = "pog",
main = "Pog.hpp",
visibility = ["//visibility:public"],
deps = [
":pog_core",
],
)
7 changes: 3 additions & 4 deletions tests/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
load("@rules_cc//cc:defs.bzl", "cc_library")
load("//tools/bazel:pch.bzl", "precompiled_headers")

package(
default_visibility = [
"//tests:__subpackages__",
],
)

precompiled_headers(
cc_library(
name = "pch_gtest",
main = "gtest.hpp",
hdrs = ["gtest.hpp"],
deps = [
"@gtest//:gtest-libgtest",
"@googletest//:gtest",
],
)

Expand Down
2 changes: 1 addition & 1 deletion tests/Integration/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@ cc_test(
"//tests:pch_gtest",
"//tests:test_fixtures",
"@fmt",
"@gtest//:gtest-gmock_main",
"@googletest//:gtest_main",
],
)
2 changes: 1 addition & 1 deletion tests/Modular/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ cc_test(
"//tests:pch_gtest",
"//tests:test_fixtures",
"@fmt",
"@gtest//:gtest-gmock_main",
"@googletest//:gtest_main",
],
)
2 changes: 1 addition & 1 deletion tests/Pog/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cc_test(
"//src/Pog:pog",
"//tests:pch_gtest",
"@fmt",
"@gtest//:gtest-gmock_main",
"@googletest//:gtest_main",
"@re2",
],
)
113 changes: 0 additions & 113 deletions tools/bazel/pch.bzl

This file was deleted.

Loading