mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
1.9 KiB
1.9 KiB
These files can only be updated having access for the internal repository at the moment.
In order to perform a Swift update:
- Dispatch the internal
swift-prebuildworkflow with the appropriate swift tag, e.g.,swift-6.1.1-RELEASE. - Dispatch internal
swift-prepare-resource-dirworkflow with the appropriate swift tag, e.g.,swift-6.1.1-RELEASE. - 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
_overridedefinition inload.bzl. - Compile and run test locally. Adjust the code if needed. New AST entities have to be dealt with in
SwiftTagTraits.h. - Open a draft PR with the overridden artifacts. Make sure CI passes, go back to 4. otherwise.
- Run DCA, got back to 4. in case of problems.
- Once you are happy, run the following from the root of the CodeQL repository:
(or whatever you have overridden). This will pull the staged archives in the repository for git LFS.
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 - Clear
_overrideinload.bzl. - Add a change note to the library change note directory that mentions that we now support the Swift version we updated to.
- If this is not a patch update, then update the supported versions with the Swift version we updated to.
- Push and your PR will be ready for
main.