Skip to content

Commit

Permalink
try adding matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
jungleraptor committed Apr 26, 2023
1 parent dbcdfba commit 7f140bd
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/musl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,25 @@ on:
- "*"

jobs:
arm-linux-musleabihf:
toolchains:
strategy:
matrix:
target: [aarch64-linux-musl, arm-linux-muleabifh, x86_64-linux-musl]
runs-on: ubuntu-22.04
name: ${{ matrix.target }}
steps:
- name: Checkout source
uses: actions/checkout@v2

- name: Build arm-linux-musleabihf
run: make arm-linux-musleabihf
- name: Build ${{ matrix.target }}
run: make ${{ matrix.target }}

- name: Upload release
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: svenstaro/upload-release-action@v1-release
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: "arm-linux-musleabihf.tar.gz"
file: "${{ matrix.target }}.tar.gz"
tag: ${{ github.ref }}
overwrite: true
file_glob: true
Expand Down

0 comments on commit 7f140bd

Please sign in to comment.