• Stars
    star
    103
  • Rank 333,046 (Top 7 %)
  • Language
    Shell
  • License
    MIT License
  • Created over 5 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Set up a specific Rust toolchain in your GitHub workflows

setup-rust-action

Integration status

Sets up a specific Rust toolchain for use in your GitHub Actions workflows.

Usage

Provide a rust-version with the desired toolchain version to install.

You can combine it with matrix to test different Rust toolchains in different platforms!

name: Test Rust project
on: [push]
jobs:
  test:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
        os: [ubuntu-latest, windows-latest, macOS-latest]
        rust: [stable, nightly]

    steps:
    - uses: hecrj/setup-rust-action@v1
      with:
        rust-version: ${{ matrix.rust }}
    - uses: actions/checkout@master
    - name: Run tests
      run: cargo test --verbose

Inputs

The following inputs can be provided with the jobs.<job_id>.steps.with yaml key.

Name Optional Description Type Default
rust-version βœ”οΈ The toolchain name, such as stable, nightly, or 1.8.0 String stable
components βœ”οΈ The toolchain components to install String, comma-separated
targets βœ”οΈ The toolchain targets to add String, comma-separated

For more details, check out action.yml.

Problem Matchers

This action registers the following problem matchers to surface relevant information inline with changeset diffs.

  • cargo-common matches common cases of errors and warnings
  • cargo-test matches cargo test errors
  • cargo-fmt matches rust format errors

To disable any or all of these you can use the remove-matcher directive documented here.

Contributing / Feedback

Contributions and feedback are welcome! Feel free to open any issues or pull requests.

More Repositories

1

coffee

An opinionated 2D game engine for Rust
Rust
1,072
star
2

wgpu_glyph

A fast text renderer for wgpu (https://github.com/gfx-rs/wgpu)
Rust
449
star
3

composable-form

Build type-safe composable forms in Elm
Elm
200
star
4

zelda

A Zelda clone in C++
C
154
star
5

html-parser

Parse HTML 5 in Elm
Elm
61
star
6

icebreaker

A local AI chat app powered by πŸ¦€ Rust, 🧊 iced, πŸ€— Hugging Face, and πŸ¦™ llama.cpp
Rust
39
star
7

window_clipboard

A library to obtain clipboard access from a `raw-window-handle`.
Rust
21
star
8

glow_glyph

A fast text renderer for glow (https://github.com/grovesNL/glow)
Rust
13
star
9

elm-slug

Type-safe slugs for Elm
Elm
10
star
10

download-release-action

Download the assets of a GitHub release
TypeScript
5
star
11

reticular

Lightweight Python module for creating powerful command-line tools
Python
4
star
12

piet-window

A simple crate to obtain a Piet renderer from a raw-window-handle
Rust
3
star
13

SwiftDecodePipeline

A library for building JSON decoders using the pipeline operator. Inspired by https://github.com/NoRedInk/elm-decode-pipeline.
Swift
3
star
14

idi

Interaction and Design of Interfaces - FIB - Fall 2013
Makefile
3
star
15

fast

A command-line tool to test the optimizations performed to a program.
Python
3
star
16

jtest

Tool for automatic testing and creating problems from Jutge.org
Ruby
2
star
17

advent_of_code

My solutions to Advent of Code
Haskell
2
star
18

mmpg

My final project for the computer science degree at FIB
TeX
2
star
19

rom-filesystem

Filesystem adapter for ROM
Ruby
1
star
20

words

words is a simple program that estimates the number of different words that a file contains.
TeX
1
star
21

alg

Algorithmics - FIB - Fall 2013
C++
1
star
22

eda

Estructuras de Datos y Algoritmos - FIB - UPC - 2012
C++
1
star
23

haskell-format

A highly opinionated Haskell formatter
Haskell
1
star
24

ies

No more sequence diagrams!
Java
1
star