Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Deecellar authored Mar 6, 2024
1 parent c08fe7c commit 63f8236
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,14 @@ jobs:
run: |
declare -a targets=("x86_64-windows" "x86_64-linux" "x86_64-macos" "aarch64-macos")
mkdir -p "artifacts/"
root=$(pwd)
cd cli
for target in "${targets[@]}"; do
mkdir -p ../artifacts/$target
mkdir -p $root/artifacts/$target
echo "Building target ${target}..."
zig build -Dtarget=${target} -Doptimize=ReleaseSafe --prefix ../artifacts/${target}/ &
sed -e '1,5d' < ../README.md > ../artifacts/${target}/README.md
cp ../LICENSE artifacts/${target}/
zig build -Dtarget=${target} -Doptimize=ReleaseSafe --prefix $root/artifacts/${target}/ &
sed -e '1,5d' < $root/README.md > $root/artifacts/${target}/README.md
cp $root/LICENSE $root/artifacts/${target}/
done
wait
Expand Down

0 comments on commit 63f8236

Please sign in to comment.