2
0
Fork 0
mirror of https://github.com/bazel-contrib/bazel-lib synced 2024-11-30 01:41:21 +00:00
Commit graph

42 commits

Author SHA1 Message Date
Greg Magolan ceaa936fba chore: run GitHub Actions CI on 1.x branch 2023-10-31 23:26:24 +01:00
Douglas Parker c6b39ab8f6
fix: always include files from the same workspace as the build target in copy_to_directory() (#360)
* fix: always include files from the same workspace as the build target in `copy_to_directory`

Fixes #359.

This updates the `copy_to_directory` tool to accept a workspace name representing the workspace of the target it is executing under. Any files in this workspace are automatically included, regardless of the `include_external_repositories` option. This makes it support usage within an external target (such as `@wksp//:dir`).

* test: add e2e test which uses `copy_to_directory` within an external workspace

Refs #359.

This should catch regressions where no files are copied when built within an external workspace and not using `include_external_repositories`.

* ci: fix stray workspace refs

---------

Co-authored-by: Alex Eagle <alex@aspect.dev>
2023-10-10 07:16:13 -07:00
Alex Eagle 063e88cde3
fix(ci): don't run patch on windows (#562) 2023-09-29 14:21:49 -07:00
Alex Eagle bc54655e71
ci: add assertion that bcr patches apply (#556) 2023-09-27 10:26:38 -07:00
Alex Eagle 14d6c50fc5
chore: rules_go is a non-dev dep at HEAD (#554)
This ensures if you get a SHA of bazel-lib you build the tools/ from head
2023-09-27 09:01:51 -07:00
Sahin Yort 5ca9c8ff25
fix: macos sed (#550) 2023-09-25 13:13:49 -07:00
Sahin Yort ef364b54b4
refactor: consume tools from source if unstamped (#543) 2023-09-24 15:06:10 -07:00
Sahin Yort e3015cd8fa
refactor: cleanup e2e (#542) 2023-09-22 13:04:09 -07:00
renovate[bot] 89d8605502
chore(deps): update actions/checkout action to v4 (#523)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-09-15 18:18:05 -07:00
Alex Eagle 84c60be530 chore: Switch to buildbuddy for RBE
Our Engflow cluster seems to be down.
2023-08-29 14:45:50 -07:00
Jason Bedard 3008f91387 chore: disable bazel 5 tests on windows 2023-06-14 15:07:20 -07:00
Jason Bedard 4083648850 chore: disable bazel 7 on windows 2023-06-14 09:15:09 -07:00
Jason Bedard c4e601f244
ci: add bazel 7 prerelease tests (#452) 2023-06-13 16:26:33 -07:00
Alex Eagle d13884f29d chore: bump minimum Bazel version to 5.4.0
this was forced by a rules_go upgrade. We don't actually require all bazel-lib users to upgrade.
This does reduce our tested compatibility range a bit, but the important thing is we work with Bazel 5.x
2023-05-08 08:08:21 -07:00
Greg Magolan f2bb1d1519
fix: windows CI (#395) 2023-03-12 02:36:10 +00:00
Greg Magolan 5faf59e8a6 chore: fix 'windows' pull request check; head_ref is the branch name while ref ends up being a generated GH actions branch name for the PR 2023-03-10 17:15:52 -08:00
Greg Magolan 8255da2d2c
chore: remove unnecessary call to register_coreutils_toolchains() in e2e/coreutils (#393) 2023-03-10 16:31:54 -08:00
Sahin Yort e31867302e
chore: use coreutils hashsum (#333) 2023-03-10 20:37:57 +03:00
Greg Magolan cb6e0c1626
build: add MacOS and Windows to CI for landed commits (#371) 2023-02-17 11:56:56 -08:00
Greg Magolan fde705ba8c
feat: make bazel-lib the source-of-truth for Aspect recommended bazelrc settings (#369) 2023-02-16 16:59:21 -08:00
Greg Magolan 25a3040180
chore: add e2e/workspace test (#339) 2023-01-16 21:46:39 -08:00
Greg Magolan 5cf6ff92a5
ci: fix pattern for Bazel version CI matrix so Aspect CLI is still used (#280) 2022-11-12 07:31:19 -08:00
Alex Eagle a145c6bb47
feat: install Aspect CLI for all users (#278)
Assuming you are using Bazelisk, this causes it to fetch Aspect's CLI and use that to wrap Bazel
2022-11-10 13:52:31 -08:00
Alex Eagle bcffe70196 chore: account for github actions deprecation
Followed https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-10-28 10:59:02 -07:00
Greg Magolan 93c43e908e
chore: upgrade to Bazel 6.0.0rc1 but continue to also test Bazel 5.3.2 on CI (#266) 2022-10-26 15:05:27 -07:00
Greg Magolan f4b2b1b3b6 fix: disable e2e/bzlmod with RBE temporarily 2022-09-12 20:52:13 -07:00
Alex Eagle eecda0e2d8 ci: exclude rbe jobs if no engflow secret 2022-09-01 16:48:59 -07:00
Alex Eagle 3b9afd5807 Revert "Run PR workflow in the main repo, not the fork"
This reverts commit 64b8541ad6.
2022-09-01 12:30:21 -07:00
Alex Eagle 64b8541ad6
Run PR workflow in the main repo, not the fork 2022-08-31 12:55:39 -07:00
Greg Magolan af057bd509
chore: don't fail fast on GitHub actions matrix (#226) 2022-08-25 20:44:07 -07:00
Alex Eagle de5274835b refactor: tighten up key management code 2022-08-22 12:39:54 -07:00
Derek Cormier cd6c2f63ee fix: broken gh actions cache 2022-08-19 08:42:26 -07:00
Alex Eagle 15ec78eb73 ci: enable engflow RBE for github actions 2022-08-19 08:42:00 -07:00
Greg Magolan 3caff577b9
fix: handle copy_to_directory '.' and './**' special patterns correctly when in the root package (#212) 2022-08-11 16:25:51 -07:00
Alex Eagle fafdd8610c chore: remove unneeded bazelisk setup 2022-06-11 12:57:49 -07:00
Renovate Bot d19d6efafe chore(deps): update bazelbuild/setup-bazelisk action to v2 2022-06-11 12:57:49 -07:00
renovate[bot] 12db1f32f9
chore(deps): update actions/checkout action to v3 (#140)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-10 13:00:59 -07:00
renovate[bot] f6bc73cb28
chore(deps): update actions/cache action to v3 (#139)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-06-10 13:00:44 -07:00
Alex Eagle 8138d7f6c3 test: introduce an e2e test asserting that bzlmod works 2022-04-27 17:34:45 -07:00
Jason Bedard d21acfbd5a
test - add bash script tests to CI (#54) 2022-03-30 17:01:16 -07:00
Derek Cormier 81eaa054b7
build: fix ci build caching (#25) 2022-01-21 08:48:43 -08:00
Alex Eagle 394f900560 Initial commit 2021-11-08 06:20:26 -08:00