Skip to content

Commit

Permalink
fix test cache and some wording
Browse files Browse the repository at this point in the history
  • Loading branch information
ClementTsang committed Jul 16, 2022
1 parent 9abedf8 commit 7bee4fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ jobs:

- name: Enable Rust cache
uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
with:
cache-on-failure: true
working-directory: test/hello_world

- name: Test simple
uses: ./
Expand Down Expand Up @@ -52,6 +55,9 @@ jobs:

- name: Enable Rust cache
uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
with:
cache-on-failure: true
working-directory: test/hello_world

- name: Test simple
uses: ./
Expand Down Expand Up @@ -84,20 +90,24 @@ jobs:

- name: Enable Rust cache
uses: Swatinem/rust-cache@cb2cf0cc7c5198d3364b9630e2c3d457f160790c # 1.4.0
with:
cache-on-failure: true
working-directory: test/hello_world

- name: Test simple
- name: Test args
uses: ./
with:
command: build
args: --target aarch64-unknown-linux-gnu
use-cross: true
cross-version: 0.2.4
directory: test/hello_world

- name: Test args
- name: Test persisting install
uses: ./
with:
command: build
args: --release
args: --release --target aarch64-unknown-linux-gnu
use-cross: true
cross-version: 0.2.4
directory: test/hello_world
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# cargo-action

A simple GitHub Action to invoke cargo/cross and commands. Inspired by the [cargo action from action-rs](https://github.com/actions-rs/cargo),
with [rust-toolchain](https://github.com/dtolnay/rust-toolchain) as reference.
A simple GitHub Action to invoke cargo/cross and commands. Inputs and usage inspired by action-rs' [cargo action](https://github.com/actions-rs/cargo),
with dtolnay's [rust-toolchain](https://github.com/dtolnay/rust-toolchain) as reference.

Written for use in personal projects, though feel free to use it on your own. May or may not work for your use case.

Expand Down

0 comments on commit 7bee4fe

Please sign in to comment.