forked from sonos/tract
-
Notifications
You must be signed in to change notification settings - Fork 1
40 lines (33 loc) · 1018 Bytes
/
musl.yml
File metadata and controls
40 lines (33 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
release:
types:
- created
name: Upload Musl release
jobs:
build:
name: Upload Release Asset
runs-on: ubuntu-20.04
strategy:
matrix:
target: [ "aarch64", "armv7" ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Extract version tag
id: version
run: echo ::set-output name=value::$(echo ${{ github.ref }} | cut -f 3 -d / )
- name: Build tract
run: ./.travis/musl_build.sh ${{matrix.target}}
- name: Bundle tract
run: |
BUNDLE=tract-musl-${{matrix.target}}-${{ steps.version.outputs.value }}
mkdir $BUNDLE
cp target/tract $BUNDLE/
tar czf $BUNDLE.tgz $BUNDLE
- name: Upload asset
uses: softprops/action-gh-release@v1
with:
files: tract-musl-${{matrix.target}}-${{ steps.version.outputs.value }}.tgz
name: ${{ steps.version.outputs.value }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}