File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2,14 +2,14 @@ name: Build CI image
22
33on :
44 push :
5- branches : [main]
5+ branches : [main, staging ]
66 paths :
77 - ' Dockerfile'
88 - ' .github/workflows/build-ci-image.yaml'
99 workflow_dispatch :
1010
1111env :
12- IMAGE : YOUR_DOCKERHUB_USERNAME/stack-wallet -ci
12+ IMAGE : ${{ secrets.DOCKERHUB_USERNAME }}/stackwallet -ci
1313
1414jobs :
1515 build :
Original file line number Diff line number Diff line change 1- # should deny
21name : Test
32on : [pull_request]
43jobs :
54 test :
65 runs-on : ubuntu-24.04
6+ container :
7+ image : stackwallet/stackwallet-ci:latest
8+ credentials :
9+ username : ${{ secrets.DOCKERHUB_USERNAME }}
10+ password : ${{ secrets.DOCKERHUB_TOKEN }}
711 steps :
812 - name : Prepare repository
913 uses : actions/checkout@v6
1014 with :
1115 fetch-depth : 0
1216 submodules : recursive
1317
14- - name : Install Flutter
15- uses : subosito/flutter-action@v2
16- with :
17- flutter-version : ' 3.38.1'
18- channel : ' stable'
19-
20- - name : install dependencies
21- run : |
22- cargo install cargo-ndk
23- rustup install 1.85.1 1.89.0
24- rustup target add x86_64-unknown-linux-gnu --toolchain 1.89.0
25- sudo apt update
26- sudo apt install -y meson ninja-build libglib2.0-dev libgcrypt20-dev libgirepository1.0-dev unzip automake build-essential file pkg-config git python3 libtool cmake openjdk-8-jre-headless libgit2-dev clang libncurses5-dev libncursesw5-dev zlib1g-dev llvm debhelper libclang-dev opencl-headers libssl-dev ocl-icd-opencl-dev libc6-dev-i386 valac libtss2-dev libsecret-1-dev libjsoncpp-dev
27- # - name: Build Epic Cash
28- #run: |
29- #cd crypto_plugins/flutter_libepiccash/scripts/linux/
30- #./build_all.sh
31-
3218 - name : Configure app
3319 run : |
3420 cd scripts
Original file line number Diff line number Diff line change @@ -11,10 +11,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1111 build-essential automake cmake meson ninja-build pkg-config libtool \
1212 libglib2.0-dev libgtk-3-dev liblzma-dev \
1313 libgcrypt20-dev libgirepository1.0-dev \
14- openjdk-8-jre-headless libgit2-dev clang \
14+ libgit2-dev clang rsync \
1515 libncurses5-dev libncursesw5-dev zlib1g-dev llvm debhelper \
1616 libclang-dev opencl-headers libssl-dev ocl-icd-opencl-dev \
17- libc6 -dev-i386 valac libtss2 -dev \
17+ valac libtss2 -dev libsecret-1-dev libjsoncpp -dev \
1818 && rm -rf /var/lib/apt/lists/*
1919
2020SHELL ["/bin/bash" , "-o" , "pipefail" , "-c" ]
@@ -43,4 +43,6 @@ RUN git clone --depth 1 --branch 3.38.1 https://github.com/flutter/flutter.git "
4343 && flutter precache --linux \
4444 && chmod -R a+rwX "$FLUTTER_HOME"
4545
46+ RUN git config --system --add safe.directory '*'
47+
4648RUN flutter --version && rustc --version && cargo --version && node --version
You can’t perform that action at this time.
0 commit comments