Swap matrix to interpolate os/targets

This commit is contained in:
Ryan 2021-02-01 12:39:41 +13:00 committed by GitHub
parent 391daace9c
commit 3ac00b7c53
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,24 +9,27 @@ on:
branches: [ master ] branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs: jobs:
# This workflow contains a single job called "build"
build: build:
runs-on: ubuntu-20.04 runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
include: os:
- target: aarch64-linux-musl - ubuntu-latest
- target: arm-linux-musleabi - macos-latest
- target: arm-linux-musleabihf - windows-latest
- target: i686-linux-musl target:
- target: riscv64-linux-musl - aarch64-linux-musl
- target: x86_64-linux-musl - arm-linux-musleabi
- target: x86_64-linux-muslx32 - arm-linux-musleabihf
- i686-linux-musl
- riscv64-linux-musl
- x86_64-linux-musl
- x86_64-linux-muslx32
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@ -35,11 +38,11 @@ jobs:
run: TARGET=${{ matrix.target }} make run: TARGET=${{ matrix.target }} make
- name: Package outputs - name: Package outputs
run: tar -C build/local musl-${{ matrix.target }}.tgz ${{matrix.target}}/* run: tar -C build/local musl-${{ matrix.os }}-${{ matrix.target }}.tgz ${{matrix.target}}/*
- name: Upload utility artifacts - name: Upload artifacts
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with:
name: musl-${{ matrix.target }}.tgz name: musl-${{ matrix.os }}-${{ matrix.target }}.tgz
path: musl-${{ matrix.target }}.tgz path: musl-${{ matrix.os }}-${{ matrix.target }}.tgz