next.js/.github/actions/setup-rust/action.yml
action.yml32 lines960 B
name: 'Rust Setup'
description: 'Sets up the Rust toolchain for CI'
inputs:
  targets:
    description: 'Comma-separated list of target triples to install for this toolchain'
    required: false

runs:
  using: 'composite'
  steps:
    - name: 'Setup Rust toolchain'
      uses: actions-rust-lang/setup-rust-toolchain@v1
      with:
        target: ${{ inputs.targets }}
        # needed to not make it override the defaults
        rustflags: ''
        cache: false

    - name: 'Install LLD (LLVM Linker) for Linux'
      if: runner.os == 'Linux'
      shell: bash
      run: |
        sudo apt-get -y -o DPkg::Lock::Timeout=60 update
        sudo apt-get -o DPkg::Lock::Timeout=60 -y install lld

    - name: 'Install cargo-binstall'
      uses: cargo-bins/cargo-binstall@dc19f1e48450eefe5a29b8da6c6b00a87d730b37 # v1.18.1

    - name: 'Add cargo problem matchers'
      shell: bash
      run: echo "::add-matcher::${{ github.action_path }}/matchers.json"
Quest for Codev2.0.0
/
SIGN IN