Skip to content

Commit b0c2bb5

Browse files
committed
🔨 Build scripts for ARM nightly releases
1 parent 7e3231a commit b0c2bb5

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/nightly-arm.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,12 @@ jobs:
2626

2727
- name: Build application
2828
shell: bash
29+
if: startsWith(github.ref, 'refs/tags/')
2930
run: |
31+
TAG_NAME="${{ github.ref_name }}"
32+
CLEAN_TAG="${TAG_NAME#v}"
3033
chmod +x linux-arm-nightly-build.sh
31-
./linux-arm-nightly-build.sh
34+
./linux-arm-nightly-build.sh -t "$CLEAN_TAG"
3235
3336
- name: Release it
3437
uses: softprops/action-gh-release@v2

build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ build_and_package() {
243243
fi
244244

245245
if [ -f "$publish_path" ]; then
246+
chmod +x "$publish_path"
246247
zip -j "$zip_name" "$publish_path"
247248
echo "Created: $zip_name"
248249
else

linux-arm-nightly-build.sh

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,21 @@
11
#!/bin/bash
22
set -e
3-
TAG_NAME="0.2.3-devbuild"
3+
TAG_NAME="armdev"
44
TARGET_PLATFORM="linux-arm64"
55

6+
while [[ $# -gt 0 ]]; do
7+
case $1 in
8+
-t|--tag)
9+
TAG_NAME="${2}(ARM AOT Build)"
10+
shift 2
11+
;;
12+
*)
13+
echo "Unknown option: $1"
14+
exit 1
15+
;;
16+
esac
17+
done
18+
619
# Get Git commit hash
720
COMMIT_HASH=$(git rev-parse --short HEAD)
821

0 commit comments

Comments
 (0)