update gcc; change tag to commit hash
This commit is contained in:
@@ -16,6 +16,9 @@ jobs:
|
|||||||
repository: zerotier/ZeroTierOne
|
repository: zerotier/ZeroTierOne
|
||||||
path: ZeroTierOne
|
path: ZeroTierOne
|
||||||
|
|
||||||
|
- id: commit
|
||||||
|
uses: prompt/actions-commit-hash@v3
|
||||||
|
|
||||||
- name: Prepare GCC Toolchain
|
- name: Prepare GCC Toolchain
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -qqy gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf g++-aarch64-linux-gnu g++-arm-linux-gnueabihf
|
sudo apt-get install -qqy gcc-aarch64-linux-gnu gcc-arm-linux-gnueabihf g++-aarch64-linux-gnu g++-arm-linux-gnueabihf
|
||||||
@@ -43,8 +46,12 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cp ZeroTierOne/zerotier-one magisk/zerotier
|
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
|
- name: Build for AArch64 with SSO
|
||||||
run: |
|
run: |
|
||||||
@@ -57,8 +64,12 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cp ZeroTierOne/zerotier-one magisk/zerotier
|
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
|
- name: Build for Arm
|
||||||
run: |
|
run: |
|
||||||
@@ -73,26 +84,9 @@ jobs:
|
|||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cp ZeroTierOne/zerotier-one magisk/zerotier/
|
cp ZeroTierOne/zerotier-one magisk/zerotier/
|
||||||
cd magisk
|
|
||||||
zip -q -r ../zerotier-magisk-arm-gcc.zip .
|
|
||||||
|
|
||||||
- name: Get Date
|
- name: Upload Arm
|
||||||
id: date
|
uses: actions/upload-artifact@v4
|
||||||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Release
|
|
||||||
uses: softprops/action-gh-release@v2
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
with:
|
||||||
files: |
|
name: zerotier-magisk-arm-gcc-${{ steps.commit.outputs.short }}
|
||||||
zerotier-magisk-aarch64-gcc-SSO.zip
|
path: magisk/
|
||||||
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
|
|
||||||
|
|||||||
@@ -26,9 +26,8 @@ jobs:
|
|||||||
repository: miniupnp/libnatpmp
|
repository: miniupnp/libnatpmp
|
||||||
path: libnatpmp
|
path: libnatpmp
|
||||||
|
|
||||||
- name: Get Date
|
- id: commit
|
||||||
id: date
|
uses: prompt/actions-commit-hash@v3
|
||||||
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_OUTPUT
|
|
||||||
|
|
||||||
- name: Prepare NDK Toolchain
|
- name: Prepare NDK Toolchain
|
||||||
run: |
|
run: |
|
||||||
@@ -65,7 +64,7 @@ jobs:
|
|||||||
- name: Upload AArch64
|
- name: Upload AArch64
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: zerotier-magisk-aarch64-ndk-${{ steps.date.outputs.date }}
|
name: zerotier-magisk-aarch64-ndk-${{ steps.commit.outputs.short }}
|
||||||
path: magisk/
|
path: magisk/
|
||||||
|
|
||||||
- name: Build for Arm
|
- name: Build for Arm
|
||||||
@@ -93,5 +92,5 @@ jobs:
|
|||||||
- name: Upload Arm
|
- name: Upload Arm
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: zerotier-magisk-arm-ndk-${{ steps.date.outputs.date }}
|
name: zerotier-magisk-arm-ndk-${{ steps.commit.outputs.short }}
|
||||||
path: magisk/
|
path: magisk/
|
||||||
|
|||||||
Reference in New Issue
Block a user