-
-
Notifications
You must be signed in to change notification settings - Fork 58
What does this get me? #72
Comments
Hi, @dtolnay. This is a totally legit and great question! You are right to assume that simple
compile:
name: ${{ matrix.toolchain }} / ${{ matrix.triple.target }}
runs-on: ${{ matrix.triple.os }}
strategy:
fail-fast: false
matrix:
triple:
# Tier 1 platforms
- { os: 'ubuntu-latest', target: 'x86_64-unknown-linux-gnu', cross: false }
- { os: 'ubuntu-latest', target: 'i686-unknown-linux-gnu', cross: true }
- { os: 'macOS-latest', target: 'x86_64-apple-darwin', cross: false }
- { os: 'windows-latest', target: 'x86_64-pc-windows-msvc', cross: false }
# Tier 2 platforms
## ARM64
- { os: 'ubuntu-latest', target: 'aarch64-unknown-linux-gnu', cross: true }
- { os: 'ubuntu-latest', target: 'aarch64-unknown-linux-musl', cross: true }
## ARMv7
- { os: 'ubuntu-latest', target: 'armv7-unknown-linux-gnueabihf', cross: true }
- { os: 'ubuntu-latest', target: 'armv7-unknown-linux-musleabihf', cross: true }
steps:
- uses: actions/checkout@v2
- name: Install toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.toolchain }}
override: true
- uses: actions-rs/cargo@v1
with:
command: check
args: --target=${{ matrix.triple.target }}
use-cross: ${{ matrix.triple.cross }}
This Action was created just after the GitHub Actions became publicly available, and there was no clear vision on how should all that small So, at this point I'm inclined to agree that plain |
There should be an example featuring the complex usage you showed off here, @svartalf. Currently there are not even any examples that I can find that use macos or windows but I think there should be. |
Is there a simple way to get the fancy error messages with a simple |
This is my first time trying GitHub Actions, so apologies for the basic question.
I see that the example workflow in this repo's readme contains this example step:
Based on the readme of this repo it wasn't clear to me what benefit this would have over just:
which appears to work.
Maybe the readme could emphasize some of the benefits?
Thanks!
The text was updated successfully, but these errors were encountered: