This commit is contained in:
sijie.sun
2025-01-10 20:56:16 +08:00
parent 7996f487e8
commit 52fc9a6aef
3 changed files with 21 additions and 1 deletions
+4 -1
View File
@@ -117,7 +117,10 @@ jobs:
if: ${{ ! endsWith(matrix.TARGET, 'freebsd') }}
run: |
bash ./.github/workflows/install_rust.sh
if [[ $OS =~ ^ubuntu.*$ && $TARGET =~ ^mips.*$ ]]; then
if [[ $$TARGET == "x86_64-win7-windows-msvc" || $TARGET == "i686-win7-windows-msvc" ]]; then
cargo +nightly build --release -Z build-std --target $TARGET
elif [[ $OS =~ ^ubuntu.*$ && $TARGET =~ ^mips.*$ ]]; then
cargo +nightly build -r --verbose --target $TARGET -Z build-std=std,panic_abort --no-default-features --features mips --package=easytier
else
cargo build --release --verbose --target $TARGET
+9
View File
@@ -166,11 +166,20 @@ jobs:
- name: Build GUI
uses: tauri-apps/tauri-action@v0
if: ${{ ! contains(matrix.TARGET, 'win7') }}
with:
projectPath: ./easytier-gui
# https://tauri.app/v1/guides/building/linux/#cross-compiling-tauri-applications-for-arm-based-devices
args: --verbose --target ${{ matrix.TARGET }} ${{ matrix.OS == 'ubuntu-22.04' && contains(matrix.TARGET, 'aarch64') && '--bundles deb' || '' }}
- name: Build GUI (Windows 7)
uses: tauri-apps/tauri-action@v0
if: ${{ contains(matrix.TARGET, 'win7') }}
with:
projectPath: ./easytier-gui
# https://tauri.app/v1/guides/building/linux/#cross-compiling-tauri-applications-for-arm-based-devices
args: --verbose --release -Z build-std --target ${{ matrix.TARGET }}
- name: Compress
run: |
mkdir -p ./artifacts/objects/
+8
View File
@@ -5,6 +5,14 @@
# - GUI_TARGET
# - OS
if [[ $$TARGET == "x86_64-win7-windows-msvc" || $TARGET == "i686-win7-windows-msvc" ]]; then
rustup set auto-self-update disable
rustup toolchain install nightly
rustup component add rust-src --toolchain nightly
rustup default nightly
exit 0
fi
# dependencies are only needed on ubuntu as that's the only place where
# we make cross-compilation
if [[ $OS =~ ^ubuntu.*$ ]]; then