Skip to content

Commit

Permalink
Update CI Config (#25)
Browse files Browse the repository at this point in the history
Microsoft Azure mirror has stability issues for a while, causing builds to fail, this commit adds `fast-apt-mirror.sh` to select mirror automatically.
  • Loading branch information
424778940z authored Apr 24, 2024
1 parent 22b34ef commit a3889ef
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@ jobs:
name: "build"
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Configure Fast APT Mirror
uses: vegardit/fast-apt-mirror.sh@v1
with: # the following parameters are listed with their action default values and are optional
healthchecks: 20 # Number of mirrors from the mirrors list to check for availability and up-to-dateness
speedtests: 10 # Maximum number of healthy mirrors to test for speed
parallel: 2 # Number of parallel speed tests
sample-size: 1024 # Number of kilobytes to download during the speed from each mirror
sample-time: 3 # Maximum number of seconds within the sample download from a mirror must finish

- name: Install Dependencies
run: |
Expand All @@ -30,6 +36,9 @@ jobs:
tar -xf arm-gnu-toolchain-12.2.rel1-aarch64-arm-none-eabi.tar.xz --strip-components=1 -C gcc-arm-none-eabi-12.2.rel1
fi
- name: Check out repository code
uses: actions/checkout@v3

- name: Populate vars
id: vars
run: |
Expand Down

0 comments on commit a3889ef

Please sign in to comment.