-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Publish runnable DotSlash package for argument-comment lint #15113
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,24 @@ | ||
| { | ||
| "outputs": { | ||
| "argument-comment-lint": { | ||
| "platforms": { | ||
| "macos-aarch64": { | ||
| "regex": "^argument-comment-lint-aarch64-apple-darwin\\.tar\\.gz$", | ||
| "path": "argument-comment-lint/bin/argument-comment-lint" | ||
| }, | ||
| "linux-x86_64": { | ||
| "regex": "^argument-comment-lint-x86_64-unknown-linux-gnu\\.tar\\.gz$", | ||
| "path": "argument-comment-lint/bin/argument-comment-lint" | ||
| }, | ||
| "linux-aarch64": { | ||
| "regex": "^argument-comment-lint-aarch64-unknown-linux-gnu\\.tar\\.gz$", | ||
| "path": "argument-comment-lint/bin/argument-comment-lint" | ||
| }, | ||
| "windows-x86_64": { | ||
| "regex": "^argument-comment-lint-x86_64-pc-windows-msvc\\.zip$", | ||
| "path": "argument-comment-lint/bin/argument-comment-lint.exe" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } |
103 changes: 103 additions & 0 deletions
103
.github/workflows/rust-release-argument-comment-lint.yml
This file contains hidden or 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,103 @@ | ||
| name: rust-release-argument-comment-lint | ||
|
|
||
| on: | ||
| workflow_call: | ||
| inputs: | ||
| publish: | ||
| required: true | ||
| type: boolean | ||
|
|
||
| jobs: | ||
| skip: | ||
| if: ${{ !inputs.publish }} | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - run: echo "Skipping argument-comment-lint release assets for prerelease tag" | ||
|
|
||
| build: | ||
| if: ${{ inputs.publish }} | ||
| name: Build - ${{ matrix.runner }} - ${{ matrix.target }} | ||
| runs-on: ${{ matrix.runs_on || matrix.runner }} | ||
| timeout-minutes: 60 | ||
|
|
||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - runner: macos-15-xlarge | ||
| target: aarch64-apple-darwin | ||
| archive_name: argument-comment-lint-aarch64-apple-darwin.tar.gz | ||
| lib_name: libargument_comment_lint@nightly-2025-09-18-aarch64-apple-darwin.dylib | ||
| runner_binary: argument-comment-lint | ||
| cargo_dylint_binary: cargo-dylint | ||
| - runner: ubuntu-24.04 | ||
| target: x86_64-unknown-linux-gnu | ||
| archive_name: argument-comment-lint-x86_64-unknown-linux-gnu.tar.gz | ||
| lib_name: libargument_comment_lint@nightly-2025-09-18-x86_64-unknown-linux-gnu.so | ||
| runner_binary: argument-comment-lint | ||
| cargo_dylint_binary: cargo-dylint | ||
| - runner: ubuntu-24.04-arm | ||
| target: aarch64-unknown-linux-gnu | ||
| archive_name: argument-comment-lint-aarch64-unknown-linux-gnu.tar.gz | ||
| lib_name: libargument_comment_lint@nightly-2025-09-18-aarch64-unknown-linux-gnu.so | ||
| runner_binary: argument-comment-lint | ||
| cargo_dylint_binary: cargo-dylint | ||
| - runner: windows-x64 | ||
| target: x86_64-pc-windows-msvc | ||
| archive_name: argument-comment-lint-x86_64-pc-windows-msvc.zip | ||
| lib_name: argument_comment_lint@nightly-2025-09-18-x86_64-pc-windows-msvc.dll | ||
| runner_binary: argument-comment-lint.exe | ||
| cargo_dylint_binary: cargo-dylint.exe | ||
| runs_on: | ||
| group: codex-runners | ||
| labels: codex-windows-x64 | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v6 | ||
|
|
||
| - uses: dtolnay/rust-toolchain@1.93.0 | ||
| with: | ||
| toolchain: nightly-2025-09-18 | ||
| targets: ${{ matrix.target }} | ||
| components: llvm-tools-preview, rustc-dev, rust-src | ||
|
|
||
| - name: Install tooling | ||
| shell: bash | ||
| run: | | ||
| install_root="${RUNNER_TEMP}/argument-comment-lint-tools" | ||
| cargo install --locked cargo-dylint --root "$install_root" | ||
| cargo install --locked dylint-link | ||
| echo "INSTALL_ROOT=$install_root" >> "$GITHUB_ENV" | ||
|
|
||
| - name: Cargo build | ||
| working-directory: tools/argument-comment-lint | ||
| shell: bash | ||
| run: cargo build --release --target ${{ matrix.target }} | ||
|
|
||
| - name: Stage artifact | ||
| shell: bash | ||
| run: | | ||
| dest="dist/argument-comment-lint/${{ matrix.target }}" | ||
| mkdir -p "$dest" | ||
| package_root="${RUNNER_TEMP}/argument-comment-lint" | ||
| rm -rf "$package_root" | ||
| mkdir -p "$package_root/bin" "$package_root/lib" | ||
|
|
||
| cp "tools/argument-comment-lint/target/${{ matrix.target }}/release/${{ matrix.runner_binary }}" \ | ||
| "$package_root/bin/${{ matrix.runner_binary }}" | ||
| cp "${INSTALL_ROOT}/bin/${{ matrix.cargo_dylint_binary }}" \ | ||
| "$package_root/bin/${{ matrix.cargo_dylint_binary }}" | ||
| cp "tools/argument-comment-lint/target/${{ matrix.target }}/release/${{ matrix.lib_name }}" \ | ||
| "$package_root/lib/${{ matrix.lib_name }}" | ||
|
|
||
| archive_path="$dest/${{ matrix.archive_name }}" | ||
| if [[ "${{ runner.os }}" == "Windows" ]]; then | ||
| (cd "${RUNNER_TEMP}" && 7z a "$GITHUB_WORKSPACE/$archive_path" argument-comment-lint >/dev/null) | ||
| else | ||
| (cd "${RUNNER_TEMP}" && tar -czf "$GITHUB_WORKSPACE/$archive_path" argument-comment-lint) | ||
| fi | ||
|
|
||
| - uses: actions/upload-artifact@v7 | ||
| with: | ||
| name: argument-comment-lint-${{ matrix.target }} | ||
| path: dist/argument-comment-lint/${{ matrix.target }}/* | ||
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If someone fetches the new
argument-comment-lintDotSlash asset on a Linux machine older than the runner image (for example Ubuntu 22.04/20.04), these*-unknown-linux-gnulibraries will typically fail to load because they were built onubuntu-24.04{,-arm}and inherit that runner's glibc requirement. Since.github/dotslash-argument-comment-lint-config.jsonpublishes these exact.sofiles as the cross-machine release artifact, the advertised Linux x64/arm64 download will only work on the newest distros unless we build from an older GNU baseline or otherwise normalize compatibility.Useful? React with 👍 / 👎.