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
9174085429
fix(ci): always build with -c opt ( #555 )
...
We no longer stamp our version anywhere since the Go tools must have deterministic hashes, so remove the --stamp setup
2023-09-27 09:56:35 -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
Sahin Yort
719b8f33b0
refactor: add ability to test against tools from source ( #532 )
2023-09-21 15:12:46 -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
d2203e9020
chore: pick up new expand_template go binary ( #518 )
...
Also fix an error that was getting reported in our release pipeline
2023-09-06 16:47:15 -07:00
Alex Eagle
2c11bf1e1b
chore: revert fancy release automation ( #517 )
...
It doesn't work properly with Publish To BCR app parsing of the module file.
2023-09-06 16:18:53 -07:00
Alex Eagle
f1e84078a6
chore: pull in https://github.com/bazel-contrib/rules-template/pull/93 ( #513 )
...
This means we won't need a module_dot_bazel.patch file on BCR anymore
2023-09-05 15:19:15 -07:00
Alex Eagle
40c2ddc71a
refactor: reduce execution requirements for copy
...
It causes warnings like 753cd459e4/src/main/java/com/google/devtools/build/lib/sandbox/SandboxModule.java (L514)
and also makes toolchain selection broken for host!=exec
Fixes #466
2023-08-29 14:56:22 -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
7b382c9ff1
ci: enable buildifier check on ci
2023-06-13 16:28:17 -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
Alex Eagle
e30284f2fa
chore: use config.yml to indicate releaser
...
We want to cleanup our GitHub tokens, and this repo is different from all others by historical accident.
2023-04-06 16:58:07 -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
Alex Eagle
1df2becc7a
chore: turn on more basic precommit checks
...
In particular this makes our bazelrc presets more compliant with client codebases, ensuring they can copy these files and not trip on their own pre-commit check
2023-02-17 11:00:00 -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
fe1dc9c734
chore: remove New PR workflows as it doesn't work on forks
2023-02-08 11:35:25 -08:00
Greg Magolan
16d9f9cb18
chore: add workflows for new issues & PRs
2023-02-07 10:58:14 -05:00
Alex Eagle
3d58a71c60
fixup! release: publish release artifact
2023-02-01 10:43:45 -08:00
Alex Eagle
dead59b7b0
release: publish release artifact
...
GitHub's stability guarantee for the archive is iffy, and we want metrics on downloads.
See https://github.com/bazel-contrib/SIG-rules-authors/issues/11#issuecomment-1412241948
2023-02-01 10:43:45 -08:00
Greg Magolan
25a3040180
chore: add e2e/workspace test ( #339 )
2023-01-16 21:46:39 -08:00
Greg Magolan
1aa5280092
chore: fixup GH release yaml
2023-01-03 12:37:05 -08:00
Greg Magolan
8457e351a1
chore: update release to include copy_to_directory action binary ( #309 )
2023-01-03 12:26:51 -08:00
Alex Eagle
d82f551393
Update workspace_snippet.sh
2022-12-04 09:42:52 -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
Derek Cormier
fa7fdc177e
fix: use person as release author
2022-09-19 13:21:36 -07:00
Alex Eagle
0450c0c652
Update release.yml
...
Don't use my PAT, instead use the default credentials like our other rulesets do.
2022-09-14 12:10:21 -07:00
Greg Magolan
f4b2b1b3b6
fix: disable e2e/bzlmod with RBE temporarily
2022-09-12 20:52:13 -07:00
Derek Cormier
c86f355dd0
ci: prepare bazel-lib for publish-to-bcr app
2022-09-10 12:30:53 -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