Skip to content

Commit b8c0e6a

Browse files
laltenWyverald
andauthored
Add rules_appimage (#1202)
* Add rules_appimage * fix build, maybe * patch away broken symlink testing * try latest main with improved symlink support * update to 1.6.0 --------- Co-authored-by: Xùdōng Yáng <[email protected]>
1 parent df1475e commit b8c0e6a

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
"""AppImage rules for Bazel."""
2+
3+
module(
4+
name = "rules_appimage",
5+
version = "1.6.0",
6+
)
7+
8+
bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True)
9+
bazel_dep(name = "platforms", version = "0.0.8")
10+
bazel_dep(name = "rules_cc", version = "0.0.9", dev_dependency = True)
11+
bazel_dep(name = "rules_python", version = "0.27.1")
12+
13+
rules_appimage = use_extension("//:extensions.bzl", "appimage_ext_dependencies")
14+
use_repo(
15+
rules_appimage,
16+
"appimage_runtime_aarch64",
17+
"appimage_runtime_i386",
18+
"appimage_runtime_armv7e-m",
19+
"appimage_runtime_x86_64",
20+
"appimagetool.png",
21+
"squashfs-tools",
22+
)
23+
24+
register_toolchains("//appimage:all")
25+
26+
python = use_extension("@rules_python//python/extensions:python.bzl", "python")
27+
python.toolchain(python_version = "3.11")
28+
pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
29+
pip.parse(
30+
hub_name = "rules_appimage_py_deps",
31+
python_version = "3.11",
32+
requirements_lock = "//:requirements.txt",
33+
)
34+
use_repo(pip, "rules_appimage_py_deps")
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
diff --git a/.bazelrc b/.bazelrc
2+
index 80632fa..ea25467 100644
3+
--- a/.bazelrc
4+
+++ b/.bazelrc
5+
@@ -1,5 +1,5 @@
6+
build --color=yes
7+
-build --cxxopt=-std=c++20
8+
+build --cxxopt=-std=c++2a
9+
build --incompatible_strict_action_env
10+
build --keep_going
11+
common --noenable_bzlmod # This line is automatically removed in CI for Bazel 5
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
bcr_test_module:
2+
module_path: ''
3+
matrix:
4+
platform: [ macos, ubuntu2004 ]
5+
tasks:
6+
run_tests:
7+
name: Run tests
8+
platform: ${{ platform }}
9+
test_targets: [ //... ]
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"url": "https://github.com/lalten/rules_appimage/archive/refs/tags/v1.6.0.tar.gz",
3+
"integrity": "sha256-EwtyW03rWONueS8ju6qhzPsjfqoe50AtFBcv8TtWJYY=",
4+
"strip_prefix": "rules_appimage-1.6.0",
5+
"patches": {
6+
"old-gcc-std20.patch": "sha256-x2KSydE72nH8QOOkEfS0Hm+faF2716y3kfeTh+7x7ks="
7+
},
8+
"patch_strip": 1
9+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"homepage": "https://github.com/lalten/rules_appimage",
3+
"maintainers": [],
4+
"repository": [
5+
"github:lalten/rules_appimage"
6+
],
7+
"versions": [
8+
"1.6.0"
9+
],
10+
"yanked_versions": {}
11+
}

0 commit comments

Comments
 (0)