fix(ci): Build all features for each package and build all archs

This commit is contained in:
Gerald Pinder 2024-11-25 22:09:36 -05:00
parent ddfacd3492
commit c8d8ab306c
5 changed files with 38 additions and 15 deletions

View file

@ -115,7 +115,7 @@ jobs:
- name: Run build
id: build
run: |
earthly --ci --push -P +build-images
earthly --ci --push -P +build-images-all
build-scripts:
timeout-minutes: 5
@ -140,7 +140,7 @@ jobs:
- name: Run build
id: build
run: |
earthly --ci --push -P +build-scripts
earthly --ci --push -P +build-scripts-all
integration-tests:
permissions:

View file

@ -172,7 +172,7 @@ jobs:
- name: Run build
id: build
run: |
earthly --ci --push -P +build-scripts
earthly --ci --push -P +build-scripts-all
build-images:
permissions:
@ -215,11 +215,11 @@ jobs:
- name: Run build
if: github.repository == 'blue-build/cli'
run: earthly --push --ci -P +build-images
run: earthly --push --ci -P +build-images-all
- name: Run build fork
if: github.repository != 'blue-build/cli'
run: earthly --ci -P +build-images
run: earthly --ci -P +build-images-all
integration-tests:
permissions:

View file

@ -102,7 +102,7 @@ jobs:
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
CARGO_PACKAGE_VERSION="v$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "blue-build") .version')"
LATEST=$(test "$CARGO_PACKAGE_VERSION" = "$LATEST_TAG" && echo true || echo false)
earthly --ci --push +build-scripts --TAGGED="true" --LATEST="$LATEST"
earthly --ci --push +build-scripts-all --TAGGED="true" --LATEST="$LATEST"
build-images:
permissions:
@ -140,4 +140,4 @@ jobs:
LATEST_TAG=$(git describe --tags `git rev-list --tags --max-count=1`)
CARGO_PACKAGE_VERSION="v$(cargo metadata --format-version 1 | jq -r '.packages[] | select(.name == "blue-build") .version')"
LATEST=$(test "$CARGO_PACKAGE_VERSION" = "$LATEST_TAG" && echo true || echo false)
earthly --push --ci -P +build-images --TAGGED="true" --LATEST="$LATEST"
earthly --push --ci -P +build-images-all --TAGGED="true" --LATEST="$LATEST"