From fcd3a8aa3b15f9b8155bb8c2a64cc11d5b0eb86f Mon Sep 17 00:00:00 2001 From: akanealw Date: Fri, 22 Sep 2023 13:01:54 -0500 Subject: [PATCH] restored defaults --- .github/workflows/flutter-build.yml | 46 ++++++++++++++--------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 993d31c2..6d1dcdbf 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -45,17 +45,17 @@ jobs: - name: Checkout source code uses: actions/checkout@v3 -# - name: Install LLVM and Clang -# uses: KyleMayes/install-llvm-action@v1 -# with: -# version: ${{ env.LLVM_VERSION }} + - name: Install LLVM and Clang + uses: KyleMayes/install-llvm-action@v1 + with: + version: ${{ env.LLVM_VERSION }} -# - name: Install flutter -# uses: subosito/flutter-action@v2 -# with: -# channel: "stable" -# flutter-version: ${{ env.FLUTTER_VERSION }} -# cache: true + - name: Install flutter + uses: subosito/flutter-action@v2 + with: + channel: "stable" + flutter-version: ${{ env.FLUTTER_VERSION }} + cache: true # - name: Replace engine with rustdesk custom flutter engine # run: | @@ -65,13 +65,13 @@ jobs: # Expand-Archive windows-x64-flutter-release.zip -DestinationPath engine # mv -Force engine/* C:/hostedtoolcache/windows/flutter/stable-${{ env.FLUTTER_VERSION }}-x64/bin/cache/artifacts/engine/windows-x64-release/ -# - name: Install Rust toolchain -# uses: actions-rs/toolchain@v1 -# with: -# toolchain: stable -# target: ${{ matrix.job.target }} -# override: true -# profile: minimal # minimal component installation (ie, no documentation) + - name: Install Rust toolchain + uses: actions-rs/toolchain@v1 + with: + toolchain: stable + target: ${{ matrix.job.target }} + override: true + profile: minimal # minimal component installation (ie, no documentation) - uses: Swatinem/rust-cache@v2 with: @@ -84,15 +84,15 @@ jobs: Push-Location flutter ; flutter pub get ; Pop-Location ~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart -# - name: Install vcpkg dependencies -# run: | -# cd C:\ -# git clone https://github.com/Kingtous/rustdesk_thirdpary_lib --depth=1 + - name: Install vcpkg dependencies + run: | + cd C:\ + git clone https://github.com/Kingtous/rustdesk_thirdpary_lib --depth=1 - name: Build rustdesk env: VCPKG_ROOT: C:\rustdesk_thirdpary_lib\vcpkg - run: python .\build.py --portable --hwcodec --flutter --feature IddDriver + run: python3 .\build.py --portable --hwcodec --flutter --feature IddDriver - name: find Runner.res # Windows: find Runner.res (compiled from ./flutter/windows/runner/Runner.rc), copy to ./Runner.res @@ -126,7 +126,7 @@ jobs: if: env.UPLOAD_ARTIFACT == 'true' run: | pushd ./libs/portable - python ./generate.py -f ../../flutter/build/windows/runner/Release/ -o . -e ../../flutter/build/windows/runner/Release/rustdesk.exe + python3 ./generate.py -f ../../flutter/build/windows/runner/Release/ -o . -e ../../flutter/build/windows/runner/Release/rustdesk.exe popd mkdir -p ./SignOutput mv ./target/release/rustdesk-portable-packer.exe ./SignOutput/rustdesk-${{ env.VERSION }}-${{ matrix.job.arch }}.exe