mirror of
https://github.com/actions-rs/cargo.git
synced 2025-08-14 20:55:14 +00:00
Update README.md
This commit is contained in:
parent
bedb735e9a
commit
cfd3086a16
18
README.md
18
README.md
@ -23,19 +23,17 @@ command on a Rust language project.
|
|||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
name: Rust project
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: synthet-ic/action-rustup@main
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: synthet-ic/action-cargo@main
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --release --all-features
|
args: --release --all-features
|
||||||
@ -55,8 +53,8 @@ jobs:
|
|||||||
name: Rust project
|
name: Rust project
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: synthet-ic/action-rustup@main
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
- run: cargo build --release --all-features
|
- run: cargo build --release --all-features
|
||||||
@ -104,13 +102,13 @@ jobs:
|
|||||||
name: Linux ARMv7
|
name: Linux ARMv7
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v3
|
||||||
- uses: actions-rs/toolchain@v1
|
- uses: synthet-ic/action-rustup@main
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
target: armv7-unknown-linux-gnueabihf
|
target: armv7-unknown-linux-gnueabihf
|
||||||
override: true
|
override: true
|
||||||
- uses: actions-rs/cargo@v1
|
- uses: synthet-ic/action-cargo@main
|
||||||
with:
|
with:
|
||||||
use-cross: true
|
use-cross: true
|
||||||
command: build
|
command: build
|
||||||
|
Loading…
x
Reference in New Issue
Block a user