chore(ci): update GitHub Actions (#1088)

* chore(ci): update GitHub Actions
* update gradle-wrapper and revert UPX
* exclude cargo from dependabot and remove empty .gitmodules
This commit is contained in:
Rene Leonhardt
2025-07-07 16:55:30 +02:00
committed by GitHub
parent 13c2e72871
commit c3a217c9d2
13 changed files with 270 additions and 164 deletions

34
.github/dependabot.yaml vendored Normal file
View File

@@ -0,0 +1,34 @@
# https://docs.github.com/en/code-security/dependabot/working-with-dependabot/dependabot-options-reference#package-ecosystem-
version: 2
updates:
# cargo updates are considered unstable without greater CI coverage
- package-ecosystem: gradle
directories:
- "easytier-gui/src-tauri/gen/android"
- "easytier-gui/src-tauri/gen/android/app"
- "easytier-gui/src-tauri/gen/android/buildSrc"
- "tauri-plugin-vpnservice/android"
schedule:
interval: weekly
- package-ecosystem: npm
directories:
- "/"
- "easytier-gui"
- "easytier-web/frontend"
- "easytier-web/frontend-lib"
- "tauri-plugin-vpnservice"
schedule:
interval: weekly
- package-ecosystem: docker
directory: ".github/workflows"
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: weekly
- package-ecosystem: swift
directory: "tauri-plugin-vpnservice/ios"
schedule:
interval: weekly

View File

@@ -1,11 +1,11 @@
FROM alpine:latest AS builder
FROM alpine:latest AS base
FROM base AS builder
ARG TARGETPLATFORM
COPY . /tmp/artifacts
RUN mkdir -p /tmp/output; \
cd /tmp/artifacts; \
ARTIFACT_ARCH=""; \
WORKDIR /tmp/output
RUN ARTIFACT_ARCH=""; \
if [ "$TARGETPLATFORM" = "linux/amd64" ]; then \
ARTIFACT_ARCH="x86_64"; \
elif [ "$TARGETPLATFORM" = "linux/arm64" ]; then \
@@ -16,14 +16,14 @@ RUN mkdir -p /tmp/output; \
fi; \
cp /tmp/artifacts/easytier-linux-${ARTIFACT_ARCH}/* /tmp/output;
FROM alpine:latest
FROM base
RUN apk add --no-cache tzdata tini
WORKDIR /app
COPY --from=builder --chmod=755 /tmp/output/* /usr/local/bin
# users can use "-e TZ=xxx" to adjust it
ENV TZ Asia/Shanghai
ENV TZ=Asia/Shanghai
# tcp
EXPOSE 11010/tcp

View File

@@ -40,12 +40,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: false
- name: Get pnpm store directory
@@ -157,7 +157,7 @@ jobs:
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Setup protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
# GitHub repo token to use to avoid rate limiter
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -47,7 +47,7 @@ jobs:
password: ${{ secrets.GITHUB_TOKEN }}
- name: Download artifact
id: download-artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
run_id: ${{ inputs.run_id }}

View File

@@ -136,12 +136,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: false
- name: Get pnpm store directory
@@ -174,7 +174,7 @@ jobs:
run: bash ./.github/workflows/install_rust.sh
- name: Setup protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
# GitHub repo token to use to avoid rate limiter
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -56,7 +56,7 @@ jobs:
- uses: actions/setup-java@v4
with:
distribution: 'oracle'
java-version: '20'
java-version: '21'
- name: Setup Android SDK
uses: android-actions/setup-android@v3
@@ -72,12 +72,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: false
- name: Get pnpm store directory
@@ -115,7 +115,7 @@ jobs:
rustup target add x86_64-linux-android
- name: Setup protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
# GitHub repo token to use to avoid rate limiter
repo-token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -42,7 +42,7 @@ jobs:
uses: actions/checkout@v4
- name: Download Core Artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
run_id: ${{ inputs.core_run_id }}
@@ -50,7 +50,7 @@ jobs:
path: release_assets
- name: Download GUI Artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
run_id: ${{ inputs.gui_run_id }}
@@ -58,7 +58,7 @@ jobs:
path: release_assets_nozip
- name: Download Mobile Artifact
uses: dawidd6/action-download-artifact@v6
uses: dawidd6/action-download-artifact@v11
with:
github_token: ${{secrets.GITHUB_TOKEN}}
run_id: ${{ inputs.mobile_run_id }}

View File

@@ -37,7 +37,7 @@ jobs:
- uses: actions/checkout@v3
- name: Setup protoc
uses: arduino/setup-protoc@v2
uses: arduino/setup-protoc@v3
with:
# GitHub repo token to use to avoid rate limiter
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -55,12 +55,12 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 21
node-version: 22
- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
with:
version: 9
version: 10
run_install: false
- name: Get pnpm store directory