Skip to content

Commit

Permalink
ci: Skip ARM builds during non-release CI (#2547)
Browse files Browse the repository at this point in the history
We run release builds during CI to ensure that compilation doesn't
regress. We exercise this against all platforms. This chews up CI
resources.

This change updates the release workflow to skip ARM builds during
non-release CI.
  • Loading branch information
olix0r authored Dec 3, 2023
1 parent f9b67fc commit 351bf01
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,20 +49,24 @@ jobs:
fi
( echo publish=true
echo version="${ver#v}"
echo archs='["amd64", "arm64", "arm"]'
) >> "$GITHUB_OUTPUT"
else
sha="${{ github.sha }}"
echo version="0.0.0-test.${sha:0:7}" >> "$GITHUB_OUTPUT"
( echo version="0.0.0-test.${sha:0:7}"
echo archs='["amd64"]'
) >> "$GITHUB_OUTPUT"
fi
outputs:
archs: ${{ steps.meta.outputs.archs }}
publish: ${{ steps.meta.outputs.publish }}
version: ${{ steps.meta.outputs.version }}

package:
needs: [meta]
strategy:
matrix:
arch: [amd64, arm64, arm]
arch: ${{ fromJson(needs.meta.outputs.archs) }}
libc: [gnu] # musl

# If we're not actually building on a release tag, don't short-circuit on
Expand Down

0 comments on commit 351bf01

Please sign in to comment.