Skip to content

Commit

Permalink
update gcc; change tag to commit hash
Browse files Browse the repository at this point in the history
  • Loading branch information
eventlOwOp committed Jun 6, 2024
1 parent 83e8ff3 commit 8b70f9c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 30 deletions.
44 changes: 19 additions & 25 deletions .github/workflows/build-gcc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
repository: zerotier/ZeroTierOne
path: ZeroTierOne

- id: commit
uses: prompt/actions-commit-hash@v3

- name: Prepare GCC Toolchain
run: |
sudo apt-get install -qqy gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf g++-aarch64-linux-gnu g++-arm-linux-gnueabihf
Expand Down Expand Up @@ -43,8 +46,12 @@ jobs:
cd ..
cp ZeroTierOne/zerotier-one magisk/zerotier
cd magisk
zip -q -r ../zerotier-magisk-aarch64-gcc.zip .
- name: Upload AArch64
uses: actions/upload-artifact@v4
with:
name: zerotier-magisk-aarch64-gcc-${{ steps.commit.outputs.short }}
path: magisk/

- name: Build for AArch64 with SSO
run: |
Expand All @@ -57,8 +64,12 @@ jobs:
cd ..
cp ZeroTierOne/zerotier-one magisk/zerotier
cd magisk
zip -q -r ../zerotier-magisk-aarch64-gcc-SSO.zip .
- name: Upload AArch64 SSO
uses: actions/upload-artifact@v4
with:
name: zerotier-magisk-aarch64-gcc-SSO-${{ steps.commit.outputs.short }}
path: magisk/

- name: Build for Arm
run: |
Expand All @@ -73,26 +84,9 @@ jobs:
cd ..
cp ZeroTierOne/zerotier-one magisk/zerotier/
cd magisk
zip -q -r ../zerotier-magisk-arm-gcc.zip .
- name: Get Date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- name: Release
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Arm
uses: actions/upload-artifact@v4
with:
files: |
zerotier-magisk-aarch64-gcc-SSO.zip
zerotier-magisk-aarch64-gcc.zip
zerotier-magisk-arm-gcc.zip
tag_name: SNAPSHOT-GCC-${{ steps.date.outputs.date }}
name: SNAPSHOT-GCC-${{ steps.date.outputs.date }}
draft: false
prerelease: true

# - name: Debugging with tmate
# uses: mxschmitt/action-tmate@v3.18
name: zerotier-magisk-arm-gcc-${{ steps.commit.outputs.short }}
path: magisk/
9 changes: 4 additions & 5 deletions .github/workflows/build-ndk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@ jobs:
repository: miniupnp/libnatpmp
path: libnatpmp

- name: Get Date
id: date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
- id: commit
uses: prompt/actions-commit-hash@v3

- name: Prepare NDK Toolchain
run: |
Expand Down Expand Up @@ -65,7 +64,7 @@ jobs:
- name: Upload AArch64
uses: actions/upload-artifact@v4
with:
name: zerotier-magisk-aarch64-ndk-${{ steps.date.outputs.date }}
name: zerotier-magisk-aarch64-ndk-${{ steps.commit.outputs.short }}
path: magisk/

- name: Build for Arm
Expand Down Expand Up @@ -93,5 +92,5 @@ jobs:
- name: Upload Arm
uses: actions/upload-artifact@v4
with:
name: zerotier-magisk-arm-ndk-${{ steps.date.outputs.date }}
name: zerotier-magisk-arm-ndk-${{ steps.commit.outputs.short }}
path: magisk/

0 comments on commit 8b70f9c

Please sign in to comment.