GitHub Actions: Rust edition

Mark Sta Ana - Sep 28 '19 - - Dev Community

Photo by Zsolt Palatinus on Unsplash

I'm on a bit of a GitHub Actions deep dive this weekend. I tried GitHub's starter workflow for Rust but I was disappointed to discover the macOS virtual environment doesn't have the Rust toolchain.

Luckily the folks at action-rs have you covered. They've developed a bunch of actions for Rust's toolchain. All your favourites are there including Clippy!

Why do I need Rust on macOS? I like to test my code across as many platforms as possible. You can use a job strategy in your workflow to achieve this.

There's a handy quickstart guide on the action-rs "meta" GitHub repo.

p.s. Can you tell I'm super excited about GitHub Actions? Doing a lot of squeeing at the moment despite coming across the odd quirk.
p.p.s. There's a rather excellent blog post about the action-rs project by one of the main authors of action-rs: svartalf.info/posts/2019-09-16-github-actions-for-rust

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .