Skip to content

Create matrix with multiple OS and env for each one #25468

Discussion options

You must be logged in to vote

Correct workflow is:

name: test matrix
on: push
jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      matrix:
    include:
      - os: macos-latest
        TARGET: x86_64-apple-darwin
        COMPILER: clang
        LINKER: clang

      - os: ubuntu-latest
        TARGET: armv7-unknown-linux-musleabihf
        COMPILER: arm-linux-gnueabihf-gcc-5
        LINKER: gcc-5-arm-linux-gnueabihf

      - os: ubuntu-latest
        TARGET: x86_64-unknown-linux-musl
        COMPILER: gcc
        LINKER: gcc
steps:
  - uses: actions/checkout@v1
  - run: echo ${{matrix.TARGET}}

Do not add os as proposed above

Replies: 5 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
5 participants