mirror of
https://github.com/openai/codex.git
synced 2026-04-30 01:16:54 +00:00
89 lines
2.8 KiB
YAML
89 lines
2.8 KiB
YAML
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
|
|
lib_name: libargument_comment_lint@nightly-2025-09-18-aarch64-apple-darwin.dylib
|
|
- runner: ubuntu-24.04
|
|
target: x86_64-unknown-linux-gnu
|
|
lib_name: libargument_comment_lint@nightly-2025-09-18-x86_64-unknown-linux-gnu.so
|
|
- runner: ubuntu-24.04-arm
|
|
target: aarch64-unknown-linux-gnu
|
|
lib_name: libargument_comment_lint@nightly-2025-09-18-aarch64-unknown-linux-gnu.so
|
|
- runner: windows-x64
|
|
target: x86_64-pc-windows-msvc
|
|
lib_name: argument_comment_lint@nightly-2025-09-18-x86_64-pc-windows-msvc.dll
|
|
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 dylint-link
|
|
shell: bash
|
|
run: cargo install --locked dylint-link
|
|
|
|
- name: Cargo build
|
|
working-directory: tools/argument-comment-lint
|
|
shell: bash
|
|
run: cargo build --release --target ${{ matrix.target }}
|
|
|
|
- if: ${{ runner.os == 'Windows' }}
|
|
name: Install DotSlash
|
|
uses: facebook/install-dotslash@v2
|
|
|
|
- name: Stage artifact
|
|
shell: bash
|
|
run: |
|
|
dest="dist/argument-comment-lint/${{ matrix.target }}"
|
|
mkdir -p "$dest"
|
|
cp "tools/argument-comment-lint/target/${{ matrix.target }}/release/${{ matrix.lib_name }}" \
|
|
"$dest/${{ matrix.lib_name }}"
|
|
|
|
- if: ${{ runner.os != 'Windows' }}
|
|
name: Compress artifact
|
|
shell: bash
|
|
run: |
|
|
zstd -T0 -19 --rm "dist/argument-comment-lint/${{ matrix.target }}/${{ matrix.lib_name }}"
|
|
|
|
- if: ${{ runner.os == 'Windows' }}
|
|
name: Compress artifact
|
|
shell: bash
|
|
run: |
|
|
./.github/workflows/zstd -T0 -19 --rm "dist/argument-comment-lint/${{ matrix.target }}/${{ matrix.lib_name }}"
|
|
|
|
- uses: actions/upload-artifact@v7
|
|
with:
|
|
name: argument-comment-lint-${{ matrix.target }}
|
|
path: dist/argument-comment-lint/${{ matrix.target }}/*
|