-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from Vertexwahn/bzlmod2
Bzlmod2
- Loading branch information
Showing
21 changed files
with
275 additions
and
228 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,49 +10,43 @@ jobs: | |
runs-on: ubuntu-20.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=gcc9 //... | ||
build_and_test_ubuntu22: | ||
name: Linux Ubuntu 22.04 build <GCC 11.3.0> | ||
name: Linux Ubuntu 22.04 build <GCC 11.4.0> | ||
runs-on: ubuntu-22.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel-ubuntu22 | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=gcc11 //... | ||
build_and_test_ubuntu24: | ||
name: Linux Ubuntu 24.04 build <GCC 13.2.0> | ||
runs-on: ubuntu-24.04 | ||
|
||
steps: | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=gcc13 //... | ||
build_and_test_windows10: | ||
name: Windows Server 2019 build <Visual Studio 2019> | ||
runs-on: windows-2019 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
|
@@ -64,87 +58,59 @@ jobs: | |
runs-on: windows-2022 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- uses: actions/[email protected] | ||
|
||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=vs2022 //... | ||
build_and_test_macos11: | ||
name: macOS 11 Bazel build <Apple Clang13> | ||
runs-on: macOS-11 | ||
build_and_test_macos13: | ||
name: macOS 13 Bazel build <Apple Clang14> | ||
runs-on: macOS-13 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- name: Print info | ||
run: | | ||
echo "OS info:" | ||
sw_vers | ||
uname | ||
echo "Compiler info:" | ||
clang --version | ||
- name: Print info | ||
run: | | ||
echo "OS info:" | ||
sw_vers | ||
uname | ||
echo "Compiler info:" | ||
clang --version | ||
- name: Build | ||
run: | | ||
brew install qt@6 | ||
#brew link qt@6 | ||
cd tests | ||
bazelisk build --config=macos //... | ||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=macos //... | ||
build_and_test_macos12: | ||
name: macOS 12 Bazel build <Apple Clang14> | ||
runs-on: macOS-12 | ||
build_and_test_macos14: | ||
name: macOS 14 Bazel build <Apple Clang14> | ||
runs-on: macOS-14 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/checkout@v4.2.2 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- name: Print info | ||
run: | | ||
echo "OS info:" | ||
sw_vers | ||
uname | ||
echo "Compiler info:" | ||
clang --version | ||
- name: Print info | ||
run: | | ||
echo "OS info:" | ||
sw_vers | ||
uname | ||
echo "Compiler info:" | ||
clang --version | ||
- name: Build | ||
run: | | ||
brew install qt@6 | ||
#brew link qt@6 | ||
cd tests | ||
bazelisk build --config=macos //... | ||
- name: Build | ||
run: | | ||
cd tests | ||
bazelisk build --config=macos //... | ||
build_and_test_macos13: | ||
name: macOS 13 Bazel build <Apple Clang14> | ||
runs-on: macOS-13 | ||
build_and_test_macos15: | ||
name: macOS 15 Bazel build <Apple Clang14> | ||
runs-on: macOS-15 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Mount bazel cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: "/home/runner/.cache/bazel" | ||
key: bazel | ||
- uses: actions/[email protected] | ||
|
||
- name: Print info | ||
run: | | ||
|
@@ -156,7 +122,5 @@ jobs: | |
- name: Build | ||
run: | | ||
brew install qt@6 | ||
#brew link qt@6 | ||
cd tests | ||
bazelisk build --config=macos //... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
bazel-* | ||
.vscode | ||
*.bazel.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module( | ||
name = "rules_qt", | ||
version = "1.0.0", | ||
compatibility_level = 1, | ||
) | ||
|
||
bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
bazel_dep(name = "platforms", version = "0.0.10") | ||
bazel_dep(name = "rules_cc", version = "0.0.17") | ||
|
||
qt = use_extension("@rules_qt//:extensions.bzl", "qt") | ||
qt.fetch() | ||
use_repo( | ||
qt, | ||
"qt_linux_x86_64", | ||
"qt_mac_aarch64", | ||
"qt_windows_x86_64", | ||
) | ||
|
||
register_toolchains( | ||
"@rules_qt//tools:all", | ||
dev_dependency = True, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
load("@rules_qt//:fetch_qt.bzl", "fetch_qt6") | ||
|
||
def _qt_impl(ctx): | ||
for mod in ctx.modules: | ||
if mod.name == "rules_qt": | ||
fetch_qt6() | ||
|
||
_fetch = tag_class(attrs = {}) | ||
|
||
qt = module_extension( | ||
implementation = _qt_impl, | ||
tag_classes = { | ||
"fetch": _fetch, | ||
}, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.