mirror of
https://github.com/shiroyashik/sculptor.git
synced 2025-12-06 13:01:12 +03:00
minor refactor
- simplify CSV reading logic - add more comments - rework the packaging script - remove debug information for git tags
This commit is contained in:
parent
e21cbd1f63
commit
cbb31f2183
6 changed files with 87 additions and 31 deletions
10
.github/actions/build/action.yml
vendored
10
.github/actions/build/action.yml
vendored
|
|
@ -17,9 +17,15 @@ runs:
|
|||
steps:
|
||||
|
||||
- name: Convert input targets to Bash array
|
||||
# read comma-separated list of targets, converts it to
|
||||
# an array of arguments for cargo-zigbuild like this:
|
||||
# [ "--target", "<target1>", "--target", "<target2>", ... ]
|
||||
shell: bash
|
||||
run: |
|
||||
readarray -d $'\0' -t targets < <(awk -F, '{ for (i = 1; i <= NF; i++) printf "--target\0%s\0", $i }' <<< "${{ inputs.targets }}")
|
||||
targets=()
|
||||
while IFS=',' read -r target
|
||||
do targets+=("--target" "$target")
|
||||
done <<< "${{ inputs.targets }}"
|
||||
declare -p targets > /tmp/targets.sh
|
||||
|
||||
- name: Check with cargo-fmt
|
||||
|
|
@ -27,7 +33,7 @@ runs:
|
|||
shell: sh
|
||||
run: cargo fmt -v --all -- --check
|
||||
|
||||
- name: Run Clippy
|
||||
- name: Run Clippy with cargo-zigbuild
|
||||
if: inputs.lint == true
|
||||
shell: bash
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue