-
Notifications
You must be signed in to change notification settings - Fork 50
/
action.yml
56 lines (56 loc) · 2.11 KB
/
action.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
name: 'Rust Release binary'
description: 'Automate publishing Rust build artifacts for GitHub releases through GitHub Actions'
branding:
icon: 'box'
color: 'orange'
inputs:
RUSTTARGET:
description: 'Output target'
required: true
EXTRA_FILES:
description: 'List of extra files to include in build'
required: false
SRC_DIR:
description: 'Path to directory containing Cargo.toml (defaults to project root)'
required: false
ARCHIVE_TYPES:
description: 'List of archive types to publish the binaries with, default "zip", supports zip and all tar formats'
required: false
ARCHIVE_NAME:
description: 'Full name of archive to upload (you must specify file extension and change this if building multiple targets)'
required: false
PRE_BUILD:
description: 'Relative path of script to run before building'
required: false
POST_BUILD:
description: 'Relative path of script to run after building'
required: false
MINIFY:
description: 'If set to "true", the resulting binary will be stripped and compressed by UPX. ("false" by default)'
required: false
TOOLCHAIN_VERSION:
description: 'The rust toolchain version to use (see https://rust-lang.github.io/rustup/concepts/toolchains.html#toolchain-specification)'
required: false
UPLOAD_MODE:
description: 'What method to use to upload compiled binaries, supported values: (release, none), default: release'
required: false
STATIC_LINKING:
description: 'Whether to statically link dependencies'
required: false
EXTRA_COMMAND_FLAGS:
description: 'Extra flags to give to cargo build (space separated)'
required: false
EXTRA_FEATURES:
description: 'Extra features to enable for the build'
required: false
FEATURES:
description: 'Features to enable for the build (implies --no-default-features)'
required: false
outputs:
BUILT_ARCHIVE:
description: 'Relative path to the archive containing compiled program'
BUILT_CHECKSUM:
description: 'Relative path to the checksum of the archive'
runs:
using: 'docker'
image: 'docker://ghcr.io/rust-build/rust-build.action:v1.4.5'