Skip to content

armgit / rea

Public Imported from GitHub
0

Reverse engineer anything with agents, from app behavior down to native binaries.

fix(ci): avoid slow Azure archive for the native cross compiler (#1016)

Ysopwnable51956c1a49a7
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index d6ce23b97..68fe78701 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -231,7 +231,16 @@ jobs:
with:
node-version-file: .nvmrc
- name: Prepare cross compiler
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y g++-mingw-w64-x86-64
+ run: |
+ # Slow Azure archive transfers can exhaust the job before compilation.
+ # Keep the same signed packages and avoid slow HTTP mirror fallback.
+ for source in /etc/apt/apt-mirrors.txt /etc/apt/sources.list /etc/apt/sources.list.d/ubuntu.sources; do
+ if [ -f "$source" ]; then
+ sudo sed -i 's|azure.archive.ubuntu.com|archive.ubuntu.com|g; s|http://archive.ubuntu.com|https://archive.ubuntu.com|g' "$source"
+ fi
+ done
+ sudo apt-get update
+ sudo apt-get install --no-install-recommends -y g++-mingw-w64-x86-64
- run: npm run build:windows-native
- run: npm run verify:windows-native:artifact
- uses: actions/upload-artifact@v4