GitHub actions use apt-spy2, retry apt-get update (#4967)

* GitHub actions retry apt-get

* use primary (non-azure) Ubuntu archive

* remove newline in build-android.yaml

* apt-spy2
This commit is contained in:
Nathan Schulte 2023-01-13 04:35:59 -06:00 committed by GitHub
parent 97196602b8
commit 4845b510fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 34 additions and 13 deletions

View File

@ -16,13 +16,15 @@ jobs:
java-version: '8'
- name: Install Tools
run: sudo apt-get install mtools
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install mtools
- name: Generate Configs, Enums & Live Documentation
working-directory: ./firmware/
run: ./gen_default_everything.sh
- name: Test Compiler
run: javac -version

View File

@ -293,7 +293,8 @@ jobs:
- name: Install multilib, mingw, sshpass and mtools
if: ${{ env.skip != 'true' }}
run: |
sudo apt-get update
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install gcc-multilib g++-multilib g++-mingw-w64 gcc-mingw-w64 sshpass mtools
sudo apt-get install zip
sudo apt-get install dosfstools
@ -441,7 +442,8 @@ jobs:
- name: Install multilib, mingw, and sshpass
run: |
sudo apt-get update
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire:Retries=3 update
sudo apt-get install gcc-multilib g++-multilib g++-mingw-w64 gcc-mingw-w64 sshpass mtools zip dosfstools
- name: Generate Enum Strings

View File

@ -20,7 +20,10 @@ jobs:
run: javac -version
- name: Install Tools
run: sudo apt-get install sshpass mtools
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install sshpass mtools
- name: Generate Configs, Enums & Live Documentation
working-directory: ./firmware/

View File

@ -22,7 +22,8 @@ jobs:
- name: Install multilib
run: |
sudo apt-get update
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install gcc-multilib g++-multilib mtools dosfstools zip
- name: Generate Configs, Enums & Live Documentation

View File

@ -19,7 +19,10 @@ jobs:
run: javac -version
- name: Install Tools
run: sudo apt-get install sshpass
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install sshpass
- name: Build TS plugin body
working-directory: ./java_tools/ts_plugin

View File

@ -23,7 +23,8 @@ jobs:
- name: Install required software (ubuntu)
if: ${{ matrix.os != 'macos-latest' }}
run: |
sudo apt-get update
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install mtools zip dosfstools sshpass lcov valgrind
- name: Install required software (macos)

View File

@ -16,7 +16,10 @@ jobs:
fetch-depth: 0
- name: Install Tools
run: sudo apt-get install sshpass sshpass mtools
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install sshpass sshpass mtools
- name: Generate Enum Strings
working-directory: ./firmware/

View File

@ -17,8 +17,9 @@ jobs:
- name: Install sshpass, kicad, and tk bindings
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo add-apt-repository --yes ppa:kicad/kicad-6.0-releases
sudo apt-get update
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install sshpass kicad python3-pip python3-tk scour librsvg2-bin
pip install python-dateutil pygubu

View File

@ -15,7 +15,8 @@ jobs:
- name: Install prerequisite software
run: |
sudo apt-get update
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install doxygen graphviz sshpass
- name: Set FTP variables

View File

@ -16,8 +16,9 @@ jobs:
- name: Install prerequisite software
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo add-apt-repository ppa:kicad/kicad-5.1-releases
sudo apt-get update
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install kicad sshpass
- name: Set SSH variables

View File

@ -22,7 +22,10 @@ jobs:
fetch-depth: 0
- name: Install Tools
run: sudo apt-get install subversion
run: |
sudo gem install apt-spy2 && sudo time apt-spy2 fix --commit
sudo apt-get -o Acquire::Retries=3 update
sudo apt-get install subversion
- name: Update version header in git
working-directory: ./firmware/