Download next.js/.github/actions/setup-rust/action.yml from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 833 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/actions/setup-rust/action.yml
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/.github/actions/setup-rust/action.yml
-
curl -L -o action.yml https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/.github/actions/setup-rust/action.yml
833 Bytes
| 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: 'Add cargo problem matchers' | |
| shell: bash | |
| run: echo "::add-matcher::${{ github.action_path }}/matchers.json" | |