feat: pin all dependencies to git sources (#3381)

This commit is contained in:
cyan
2026-08-18 16:34:01 +02:00
committed by GitHub
parent 1f0f51fec5
commit be694edcc4
64 changed files with 6252 additions and 7159 deletions
@@ -159,11 +159,8 @@ jobs:
- name: Build generated code
run: |
flutter --version
flutter clean
rm -rf .dart_tool
rm pubspec.lock
flutter pub get
./model_generator.sh async
./model_generator.sh
- name: Generate key properties
run: |
+55
View File
@@ -0,0 +1,55 @@
name: Check for dependency changes
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: read
pull-requests: write
jobs:
compare-overrides:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha }}
- uses: actions/setup-go@v5
with:
go-version: stable
- name: Compare pubspec overrides
id: compare
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
run: |
git fetch origin "$BASE_REF"
base_sha=$(git rev-parse "origin/$BASE_REF")
head_sha="${{ github.event.pull_request.head.sha }}"
./scripts/compare_overrides.sh "$base_sha" "$head_sha" > /tmp/compare_output.txt
if [[ ! -s /tmp/compare_output.txt ]]; then
echo "has_output=false" >> "$GITHUB_OUTPUT"
exit 0
fi
{
echo '### changes in dependencies'
echo
echo '```'
cat /tmp/compare_output.txt
echo '```'
} > /tmp/comment_body.md
echo "has_output=true" >> "$GITHUB_OUTPUT"
- uses: marocchino/sticky-pull-request-comment@v2
if: steps.compare.outputs.has_output == 'true'
with:
header: pubspec-overrides-compare
path: /tmp/comment_body.md
+12 -6
View File
@@ -1,16 +1,15 @@
name: Cake Wallet Linux
on: [pull_request]
permissions:
contents: read
packages: write
on: [pull_request]
defaults:
run:
shell: bash
jobs:
PR_test_build:
runs-on: [Linux, amd64, forlinux]
@@ -28,6 +27,7 @@ jobs:
- /opt/cw_cache_linux/root/.pub-cache/:/root/.pub-cache
- /opt/cw_cache_linux/root/go/pkg:/root/go/pkg
- /opt/cw_cache_linux/opt/generic_cache:/opt/generic_cache
- /var/run/docker.sock:/var/run/docker.sock
steps:
- name: Fix github actions messing up $HOME...
@@ -44,6 +44,14 @@ jobs:
with:
ref: ${{ github.event.pull_request.head.sha }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: configure git
run: |
git config --global --add safe.directory '*'
@@ -85,7 +93,6 @@ jobs:
echo "${{ secrets.MAIN_SECRETS_FILE }}" | base64 --decode > lib/.secrets.g.dart
- name: Build dependencies utilizing ghcr cache
run: |
env \
@@ -93,7 +100,6 @@ jobs:
CW_DOCKER_USE_CLOUD=true \
./scripts/linux/docker/build.sh
- name: Execute Build and Setup Commands
run: |
pushd scripts/linux
@@ -107,7 +113,7 @@ jobs:
- name: Build generated code
run: |
./model_generator.sh async
./model_generator.sh
- name: Generate localization
run: |
+2 -6
View File
@@ -125,12 +125,8 @@ jobs:
- name: Build generated code
run: |
flutter --version
flutter clean
rm -rf .dart_tool
rm pubspec.lock
flutter pub get
./model_generator.sh async
./model_generator.sh
- name: Generate key properties
run: |