#github-action #workflow #definition #job #name #yaml #parse

app workflow-jobs

将 GitHub Action 工作流程定义解析为作业名称

3 个版本

0.1.2 2022年12月23日
0.1.1 2022年12月23日
0.1.0 2022年12月23日

#16 in #names

24 每月下载次数

MIT 许可证

19KB
411

workflow-jobs

workflow-jobs 读取 GitHub Action 工作流程定义,并以与工作流程定义中出现的顺序完全相同的顺序输出生成的 GitHub 作业名称。

示例

testdata/test.yml

$ workflow-jobs testdata/test.yml 
enarx sev nightly debug
enarx sev nightly debug with dbg
enarx sev nightly release
enarx sgx nightly debug
enarx sgx nightly debug with dbg
enarx sgx nightly release
enarx kvm nightly debug
enarx kvm nightly debug with dbg
enarx kvm nightly release
enarx build-only nightly default-features
enarx build-only nightly gdb
enarx MacOS
enarx Windows
nightly debug
nightly release
sallyport miri debug
sallyport miri release

testdata/check.yml

$ workflow-jobs testdata/check.yml 
nix fmt
checks (macos-latest, x86_64-darwin, clippy)
checks (macos-latest, x86_64-darwin, nextest)
checks (ubuntu-latest, x86_64-linux, clippy)
checks (ubuntu-latest, x86_64-linux, nextest)
checks (ubuntu-latest, x86_64-linux, fmt)

列出存储库中的所有作业名称

$ workflow-jobs .github/workflows/*

https://github.com/enarx/enarx/tree/6bbf266ba281cb695fffc589bb9e678cbb239928

$ workflow-jobs .github/workflows/*
create-pr
Conventional Commit Message Checker (Commisery)
sev coverage
sgx coverage
kvm coverage
nil coverage
dependabot
triage
cargo fmt
cargo clippy (--workspace --all-targets)
cargo clippy (--target=x86_64-unknown-linux-musl --workspace --all-targets)
cargo clippy (--target=x86_64-unknown-none -p enarx-shim-sgx -p enarx-shim-kvm -p sallyport -p enarx_syscall_tests)
cargo clippy (--target=wasm32-wasi -p enarx_wasm_tests --all-targets)
cargo deny
check-spdx-headers
nix-update
check
fmt
run
develop
auto-merge
build-nix (macos-latest, aarch64-apple-darwin, file ./result/bin/enarx, echo "OCI runtime not available, skip")
build-nix (ubuntu-latest, aarch64-unknown-linux-musl, nix shell --inputs-from . 'nixpkgs#qemu' -c qemu-aarch64 ./result/bin/enarx platform info, docker load < ./result)
build-nix (macos-latest, x86_64-apple-darwin, ./result/bin/enarx platform info, echo "OCI runtime not available, skip")
build-nix (ubuntu-latest, x86_64-unknown-linux-musl, ./result/bin/enarx platform info, docker load < ./result
docker run --rm enarx:$(nix eval --raw .#enarx-x86_64-unknown-linux-musl-oci.imageTag) enarx platform info
)
enarx Windows build
sign-x86_64
build-lipo
test-lipo (macos-latest)
test-lipo (aarch64-apple-darwin)
build-rpm (x86_64)
build-rpm (aarch64)
build-deb (x86_64, amd64)
build-deb (aarch64, arm64)
push_oci
release
create-pr
Run cargo-cyclonedx and generate BOM files [both JSON and XML]
Regenerate-BOM
test-docs docs/Install.md git,helloworld ubuntu
test-docs docs/Install.md git,helloworld debian
test-docs docs/Install.md git,helloworld fedora
test-docs docs/Install.md git,helloworld centos7
test-docs docs/Install.md git,helloworld centos8
enarx sev nightly debug
enarx sev nightly debug with dbg
enarx sev nightly release
enarx sgx nightly debug
enarx sgx nightly debug with dbg
enarx sgx nightly release
enarx kvm nightly debug
enarx kvm nightly debug with dbg
enarx kvm nightly release
enarx build-only nightly default-features
enarx build-only nightly gdb
enarx MacOS
enarx Windows
nightly debug
nightly release
sallyport miri debug
sallyport miri release

依赖项

~2–2.9MB
~60K SLoC