-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.37 KB
/
build.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
name: Build Check
on:
workflow_dispatch:
inputs:
target:
description: 'Build Target'
required: true
default: 'x86_64-unkown-linux-gnu'
type: choice
options:
- x86_64-unknown-linux-musl
- x86_64-unknown-linux-gnu
- x86_64-unknown-freebsd
- x86_64-unknown-netbsd
- x86_64-unknown-openbsd # Not working right now
- x86_64-unknown-dragonfly
- x86_64-unknown-illumos
- x86_64-sun-solaris
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
- aarch64-apple-darwin
builder:
description: 'Builder OS'
required: true
default: 'ubuntu-latest'
type: choice
options:
- ubuntu-latest
- windows-latest
- macOS-latest
env:
CARGO_TERM_COLOR: always
jobs:
build:
name: Build check - ${{ inputs.target }}
runs-on: ${{ inputs.builder }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install musl-tools
run: sudo apt-get update --yes && sudo apt-get install --yes musl-tools
if: contains(inputs.target, 'musl')
- name: Build
uses: houseabsolute/actions-rust-cross@v0
with:
command: build
target: ${{ inputs.target }}
args: "--locked --release --features 'static-openssl'"