Skip to content

Commit

Permalink
Added retry on runcmd for unstable aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
finwo committed Jun 25, 2024
1 parent b44866e commit 0b0cb00
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/cc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,17 +90,32 @@ jobs:
uses: uraimo/run-on-arch-action@v2
name: Build & check
id: runcmd
continue-on-error: true
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}

install: |
apt-get update -yq
apt-get install -yq build-essential wget
wget https://github.com/finwo/stddoc.c/releases/download/edge/stddoc-lin-${{ matrix.arch }} -o /usr/local/bin/stddoc
chmod +x /usr/local/bin/stddoc
run: |
make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
- if: ${{ matrix.arch != 'none' && steps.runcmd.outcome == 'failure' }}
uses: uraimo/run-on-arch-action@v2
name: Build & check (retry)
with:
arch: ${{ matrix.arch }}
distro: ${{ matrix.distro }}
githubToken: ${{ github.token }}
install: |
apt-get update -yq
apt-get install -yq build-essential wget
wget https://github.com/finwo/stddoc.c/releases/download/edge/stddoc-lin-${{ matrix.arch }} -o /usr/local/bin/stddoc
chmod +x /usr/local/bin/stddoc
run: |
make CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
make check CC=${{ matrix.cc }} BIN=${{ matrix.bin }}
Expand Down

0 comments on commit 0b0cb00

Please sign in to comment.