Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
R
rustdesk
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李朝发
rustdesk
Commits
ed58f074
Commit
ed58f074
authored
Sep 12, 2022
by
rustdesk
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revert back to no flutter version
parent
86a9060e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
50 deletions
+16
-50
ci.yml
.github/workflows/ci.yml
+16
-50
No files found.
.github/workflows/ci.yml
View file @
ed58f074
...
...
@@ -78,45 +78,10 @@ jobs:
shell
:
bash
run
:
|
case ${{ matrix.job.target }} in
x86_64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake
libclang-dev ninja-build libappindicator3-dev libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev
;;
x86_64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt install -y g++ gcc git curl wget nasm yasm libgtk-3-dev clang libxcb-randr0-dev libxdo-dev libxfixes-dev libxcb-shape0-dev libxcb-xfixes0-dev libasound2-dev libpulse-dev cmake ;;
# arm-unknown-linux-*) sudo apt-get -y update ; sudo apt-get -y install gcc-arm-linux-gnueabihf ;;
# aarch64-unknown-linux-gnu) sudo apt-get -y update ; sudo apt-get -y install gcc-aarch64-linux-gnu ;;
esac
-
name
:
Install flutter
uses
:
subosito/flutter-action@v2
with
:
channel
:
'
stable'
-
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 flutter rust bridge deps
run
:
|
dart pub global activate ffigen --version 5.0.1
# flutter_rust_bridge
pushd /tmp && git clone https://github.com/SoLongAndThanksForAllThePizza/flutter_rust_bridge --depth=1 && popd
pushd /tmp/flutter_rust_bridge/frb_codegen && cargo install --path . && popd
pushd flutter && flutter pub get && popd
~/.cargo/bin/flutter_rust_bridge_codegen --rust-input ./src/flutter_ffi.rs --dart-output ./flutter/lib/generated_bridge.dart
-
name
:
Install corrosion
run
:
|
mkdir /tmp/corrosion
pushd /tmp/corrosion
git clone https://github.com/corrosion-rs/corrosion.git
# Optionally, specify -DCMAKE_INSTALL_PREFIX=<target-install-path>. You can install Corrosion anyway
cmake -Scorrosion -Bbuild -DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
# This next step may require sudo or admin privileges if you're installing to a system location,
# which is the default.
sudo cmake --install build --config Release
popd
-
name
:
Restore from cache and install vcpkg
uses
:
lukka/run-vcpkg@v7
...
...
@@ -127,7 +92,15 @@ jobs:
-
name
:
Install vcpkg dependencies
run
:
|
$VCPKG_ROOT/vcpkg install libvpx libyuv opus
shell
:
bash
shell
:
bash
-
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
:
Show version information (Rust, cargo, GCC)
shell
:
bash
...
...
@@ -141,19 +114,12 @@ jobs:
-
uses
:
Swatinem/rust-cache@v1
# - name: Build
# uses: actions-rs/cargo@v1
# with:
# use-cross: ${{ matrix.job.use-cross }}
# command: build
# args: --locked --release --target=${{ matrix.job.target }} --features flutter -v
-
name
:
Build Flutter
run
:
|
pushd flutter
flutter pub get
flutter build linux --release -v
popd
-
name
:
Build
uses
:
actions-rs/cargo@v1
with
:
use-cross
:
${{ matrix.job.use-cross }}
command
:
build
args
:
--locked --release --target=${{ matrix.job.target }}
# - name: Strip debug information from executable
# id: strip
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment