mirror of
https://github.com/EasyTier/EasyTier.git
synced 2025-05-19 10:33:45 +00:00
'tmp'
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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/
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user