Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/SKalt/cconvention
Browse files Browse the repository at this point in the history
  • Loading branch information
SKalt committed Jan 23, 2024
2 parents 03f1788 + 7bd0873 commit 442d075
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,32 @@ jobs:
- name: flatten directory
shell: bash
run: |
sudo apt install -y tree
tree ./artifacts
mkdir flattened
find ./artifacts -type f -exec mv '{}' ./flattened/ ';'
# since all arch-specific builds of the cli are named cconvention,
# rename them when moving them into the directory to upload
variants=(base pro)
triples=(
x86_64-unknown-linux-gnu
aarch64-unknown-linux-gnu
x86_64-apple-darwin
aarch64-apple-darwin
)
for variant in "${variants[@]}"; do
for arch in "${triples[@]}"; do
name="cconvention-${variant}-${triple}"
cp ./artifacts/$name/cconvention ./flattened/$name
done
done
cp \
./artifacts/x86_64-pc-windows-msvc/x86_64-pc-windows-msvc.exe \
./flattened
# all vsix variants have unique names
cp ./artifacts/**/*.vsix ./flattened/
- name: "checksums"
if: steps.release_id.outputs.ok == 'true'
shell: bash
Expand Down
1 change: 1 addition & 0 deletions scripts/build_vsix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ build_vsix() {
mkdir -p "$dist_dir"
log_dbug "copying orignial bin $original_bin_path -> $dist_dir/cconvention"
cp "$original_bin_path" "$dist_dir/cconvention"
chmod +x "$dist_dir/cconvention" # ensure the binary is executable
rm -f "$vsix_path" # just in case
# see https://github.com/microsoft/vscode-vsce/issues/421 for issues with vsce+pnpm
log_info "building $vsix_path"
Expand Down

0 comments on commit 442d075

Please sign in to comment.