Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove deprecated action #15

Merged
merged 1 commit into from
Jul 17, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 6 additions & 43 deletions recipes/ci-cd/github-actions/workflows/rust/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ This uses Rust that is already set up in the enviroment.
on:
push:
branches: [ main ]

pull_request:
branches: [ main ]

Expand All @@ -33,49 +33,12 @@ This uses Rust that is already set up in the enviroment.
runs-on: ubuntu-latest

steps:
- name: Checkout 🛎️
uses: actions/checkout@v2
- name: Build 🏗️
- name: Checkout 🛎️
uses: actions/checkout@v4

- name: Build 🏗️
run: cargo build --verbose

- name: Test 🚨
run: cargo test --verbose
```


### Simple Infra

This uses an Action is maintained by the Rust team.

The [simple-ci](https://github.com/rust-lang/simpleinfra/tree/master/github-actions/simple-ci) action, from the `rust-lang/simpleinfr` repo.

> This builds, tests, and checks the formatting of your project.

- `main.yml`
```yaml
name: Rust CI

on:
push:
branches: [main]
paths-ignore:
- "docs/**"

pull_request:
branches: [main]
paths-ignore:
- "docs/**"

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2

- name: Set up Rust 🦀
uses: rust-lang/simpleinfra/github-actions/simple-ci@master
with:
check_fmt: true
```