-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Swift: update
load.bzl
and resources
- Loading branch information
Paolo Tranquilli
committed
Oct 30, 2024
1 parent
91f683d
commit d325b8e
Showing
3 changed files
with
69 additions
and
26 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
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 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,25 @@ | ||
These files can only be updated having access for the internal repository at the moment. | ||
|
||
In order to perform a Swift update: | ||
|
||
1. Dispatch the https://github.com/github/semmle-code/actions/workflows/__swift-prebuild.yml with the appropriate swift | ||
tag. | ||
2. Dispatch the https://github.com/github/semmle-code/actions/workflows/__swift-prepare-resource-dir.yml with the | ||
appropriate swift tag. | ||
3. Once the jobs finish, staged artifacts are available | ||
at https://github.com/dsp-testing/codeql-swift-artifacts/releases. Copy and paste the sha256 within the `_override` | ||
definition in [`load.bzl`](../load.bzl). | ||
4. Compile and run test locally. Adjust the code if needed. New AST entities have to be dealt with in [ | ||
`SwiftTagTraits.h`](../../extractor/infra/SwiftTagTraits.h). | ||
5. Open a draft PR with the overridden artifacts. Make sure CI passes, go back to 4. otherwise. | ||
6. Run DCA, got back to 4. in case of problems. | ||
7. Once you are happy, do | ||
```bash | ||
bazel run //swift/third_party/resources:update-dir-macos | ||
bazel run //swift/third_party/resources:update-dir-linux | ||
bazel run //swift/third_party/resources:update-prebuilt-macos | ||
bazel run //swift/third_party/resources:update-prebuilt-linux | ||
``` | ||
(or whatever you have overridden). This will pull the staged archives in the repository for git LFS. | ||
8. Clear `_override` in [`load.bzl`](../load.bzl). | ||
9. Push and your PR will be ready for `main`. |