1
Fork 0
Commit Graph

48 Commits

Author SHA1 Message Date
Motiejus Jakštys 6d2ee8cad0 replace zopfli with encoding/gzip 2023-03-14 20:25:57 +02:00
Motiejus Jakštys d3a2d43356 releaser
This is a work in progress. Next steps:

1. Add instructions to the wiki.
2. Try the new tarball on a real repository.
3. Cut the actual release.

Test output for an upcoming `v1.0.2`:

    $ bazel run //tools/releaser -- -skip_upgrades=true -tag v1.0.2
    INFO: Analyzed target //tools/releaser:releaser (1 packages loaded, 29 targets configured).
    INFO: Found 1 target...
    Target //tools/releaser:releaser up-to-date:
      bazel-bin/tools/releaser/releaser_/releaser
    INFO: Elapsed time: 1.978s, Critical Path: 1.81s
    INFO: 3 processes: 1 internal, 2 linux-sandbox.
    INFO: Build completed successfully, 3 total actions
    INFO: Running command line: bazel-bin/tools/releaser/releaser_/releaser '-skip_upgrades=true' -tag v1.0.2
    Running pre-release checks:
    - SKIPPING: go update commands
    - gazelle
    - checking if repository is clean
    Creating tag v1.0.2
    Creating archive bazel-zig-cc-v1.0.2.tar
    Compressing bazel-zig-cc-v1.0.2.tar
    Written /code/bazel-zig-cc/bazel-zig-cc-v1.0.2.tar.gz
    Release boilerplate:
    -----
    load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")

    http_archive(
        name = "bazel-zig-cc",
        sha256 = "b0e857f8b32062a112305931437c5a7e1762287e27379c6d2d7173f0fa74e270",
        urls = [
            "https://mirror.bazel.build/github.com/uber/bazel-zig-cc/releases/download/v1.0.2/bazel-zig-cc-v1.0.2.tar.gz",
            "https://github.com/uber/bazel-zig-cc/releases/download/v1.0.2/bazel-zig-cc-v1.0.2.tar.gz",
        ],
    )

    load("@bazel-zig-cc//toolchain:defs.bzl", zig_toolchains = "toolchains")

    # Argument-free will pick reasonable defaults.
    zig_toolchains()

    # version, url_formats and host_platform_sha256 are can be set for those who
    # wish to control their Zig SDK version and where it is downloaded from
    zig_toolchains(
        version = "<...>",
        url_formats = [
            "https://example.org/zig/zig-{host_platform}-{version}.{_ext}",
        ],
        host_platform_sha256 = { ... },
    )
2023-03-14 20:25:57 +02:00
Zhongpeng Lin fef28b9706 Enable Lint on CI (#2) 2023-03-06 11:46:02 +02:00
Motiejus Jakštys 53d89ba627 wip go 1.20 2023-02-10 15:44:56 +02:00
Motiejus Jakštys a47c7abc96 upgrade gazelle, add -lresolv
does not fix the test
2023-01-18 16:58:08 +02:00
Motiejus Jakštys 9afee48d44 buildifier 2022-12-11 22:10:37 +02:00
Motiejus Jakštys 47d54b8099 update rules_go
this is used only in tests.
2022-12-11 22:06:28 +02:00
Motiejus Jakštys 9eaebe0ad2 rules_go: cherry-pick a gorace workaround 2022-11-30 21:10:08 +02:00
Motiejus Jakštys 0f981d591e WORKSPACE: bump go to 1.19.3 2022-11-28 11:06:03 +02:00
Motiejus Jakštys eba4adbbb4 WORKSPACE: upgrade to go1.19.2 2022-10-13 12:30:06 +03:00
Motiejus Jakštys 771fcc5bc6 bump to go 1.19
Removing --no-gc-sections, because that's now in Go. Whoo!
2022-08-12 05:21:24 +03:00
Motiejus Jakštys c122a0d1c7 WORKSPACE: bump rules_go to v0.34.0 2022-07-20 08:50:29 +03:00
Motiejus Jakštys 107727b0c8 upgrade rules_go to v0.33 2022-07-12 14:24:03 +03:00
Motiejus Jakštys d263686ec4 Merge branch 'motiejus_windows' 2022-06-08 22:59:06 +03:00
Motiejus Jakštys cefae49ecc WORKSPACE: upgrade to go 1.18.3 2022-06-08 11:55:07 +03:00
Fabian Hahn 6f2ae838cd added Windows target testing 2022-06-02 05:27:22 +03:00
Motiejus Jakštys 59057c06f3 upgrade rules_go and bazel_gazelle 2022-05-17 14:43:40 +03:00
Motiejus Jakštys dd8665fc7f bump go to 1.18.2 2022-05-17 14:42:37 +03:00
Motiejus Jakštys 4cc8a7b551 bump go to 1.18.1 2022-04-26 05:06:59 +03:00
Motiejus Jakštys 418b589ed2 example transitions only change platforms, leave toolchains for WORKSPACE 2022-04-18 12:40:17 +03:00
Motiejus Jakštys 0c02a827ae README prose, the way I understand it 2022-04-18 11:42:13 +03:00
laurynasl 4d65b80903 Add libc constraint and libc aware toolchains
- Also get rid of @bazel_skylib dependency
2022-04-14 14:29:06 +00:00
laurynasl 7a81e2a129 Restructure tests to all run in bazel
- add rules to run tests for a specific platform
- use downloaded buildifier
- move lint to a script
- rename ci tasks
- stop running under qemu-aarch64-static as it doesn't do anything
2022-04-14 10:47:02 +00:00
Motiejus Jakštys 22762ccc97 buildifier 2022-03-26 16:05:25 +02:00
Ken Micklas 843d97621f Pin Go SDK to 1.18 for reproducibility 2022-03-26 15:56:11 +02:00
Motiejus Jakštys 0715e6d6ce buildifier 2022-02-24 11:06:35 +02:00
Motiejus Jakštys 874164ece1 stop hardcoding go sdk version
Turns out 1.17 is 1.17, but not 1.17.x, like I assumed previously. From
now on, the builds will be non-reproducible and will depend on whatever
the latest stable Go version is. This is better than me trying to
remember to bump Go versions when patches come out.
2022-02-24 11:03:14 +02:00
Motiejus Jakštys 3325986971 recommend registering toolchains via .bazelrc 2022-02-08 14:09:30 +02:00
Motiejus Jakštys 74fb5e7aac upgrade rules_go 2022-02-05 11:07:58 +02:00
Motiejus Jakštys f7df739c83 back to glibc 2.19
fcntl64 is not yet fixed.
2022-02-03 14:24:32 +02:00
Motiejus Jakštys dcda3d40f0 updating dependencies 2021-12-22 11:16:01 +02:00
Motiejus Jakštys 6328b0702a libc6: upgrade to 2.28
Debian Jessie (with glibc 2.19) is no longer important nor interesting;
the lowest common denominator is now buster.
2021-12-09 12:50:35 +02:00
Motiejus Jakštys 3e7f92cea5 unregister default toolchains; update README 2021-08-11 09:37:54 +03:00
Motiejus Jakštys 11f919ea6f fix flock 2021-08-06 11:23:39 +03:00
Motiejus Jakštys 005f87a26d more robust toolchain selection 2021-08-05 09:47:34 +03:00
Motiejus Jakštys 4d44d9ffd4 speed first safety later 2021-08-04 19:46:21 +03:00
Motiejus Jakštys 13cba6c244 rework toolchain registration
- support specifying the glibc version.
- support picking the default of musl or glibc.
- create both zig and go conventions for `--extra_toolchains`.
2021-08-04 15:04:14 +03:00
Motiejus Jakštys 631906ffd8 wip: go repositories 2021-07-21 14:59:33 +03:00
Motiejus Jakštys 6b5eb896ca fix workspace name 2021-06-11 06:43:15 +03:00
Motiejus Jakštys 4e48d6f1af remove buildtools again 2021-06-10 13:15:34 +03:00
Motiejus Jakštys dbff5afa75 buildifier 2021-06-10 13:12:54 +03:00
Motiejus Jakštys 5973131fff Revert "remove protobuf_deps and build_tools"
This reverts commit 23f26dfa7e.
2021-06-10 13:10:24 +03:00
Motiejus Jakštys 23f26dfa7e remove protobuf_deps and build_tools 2021-06-10 09:18:21 +03:00
Motiejus Jakštys 670276e5be rename directory 2021-06-08 05:06:58 +03:00
Motiejus Jakštys 61c98f3464 bring back some things from the old repo 2021-06-07 22:50:19 +03:00
Motiejus Jakštys d98e471f83 add gazelle:prefix 2021-06-07 22:40:51 +03:00
Motiejus Jakštys 5daa23e987 add gazelle and rules_go 2021-06-07 22:24:26 +03:00
Motiejus Jakštys c96a2f4260 rename files 2021-06-07 22:22:18 +03:00