-
Notifications
You must be signed in to change notification settings - Fork 4
69 lines (67 loc) · 2 KB
/
build-crates-standalone.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: Build crates (Standalone)
on:
workflow_call:
inputs:
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: true
artifact-patterns:
type: string
required: true
exclude-builds:
type: string
required: false
default: '[]'
workflow_dispatch:
inputs:
repo:
type: string
required: true
version:
type: string
required: true
branch:
type: string
required: true
artifact-patterns:
type: string
required: true
exclude-builds:
type: string
required: false
default: '[]'
jobs:
build:
runs-on: ${{ matrix.build.os }}
strategy:
fail-fast: false
matrix:
exclude: ${{ fromJson(inputs.exclude-builds) }}
build:
- { target: x86_64-unknown-linux-gnu, os: ubuntu-20.04 }
- { target: x86_64-unknown-linux-musl, os: ubuntu-20.04 }
- { target: arm-unknown-linux-gnueabi, os: ubuntu-20.04 }
- { target: arm-unknown-linux-gnueabihf, os: ubuntu-20.04 }
- { target: armv7-unknown-linux-gnueabihf, os: ubuntu-20.04 }
- { target: aarch64-unknown-linux-gnu, os: ubuntu-20.04 }
- { target: aarch64-unknown-linux-musl, os: ubuntu-20.04 }
- { target: x86_64-apple-darwin, os: macos-11 }
- { target: aarch64-apple-darwin, os: macos-11 }
- { target: x86_64-pc-windows-msvc, os: windows-2019 }
- { target: x86_64-pc-windows-gnu, os: windows-2019 }
steps:
- id: build
uses: eclipse-zenoh/ci/build-crates-standalone@main
with:
repo: ${{ inputs.repo }}
version: ${{ inputs.version }}
branch: ${{ inputs.branch }}
target: ${{ matrix.build.target }}
artifact-patterns: ${{ inputs.artifact-patterns }}
github-token: ${{ secrets.BOT_TOKEN_WORKFLOW }}