0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-25 05:31:37 +00:00

Use QEMU from the runner environment instead of an external copy. ()

* Use QEMU from the runner environment instead of an external copy.

This should make things both more self-contained and easier to debug
when things go wrong.

* Fix conditional for QEMU setup.
This commit is contained in:
Austin S. Hemmelgarn 2025-01-24 08:49:35 -05:00 committed by GitHub
parent b304750344
commit d0b8699f3f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 19 additions and 3 deletions

View file

@ -228,10 +228,18 @@ jobs:
with:
path: artifacts/cache
key: ${{ steps.cache-key.outputs.key }}
- name: Set up QEMU
id: qemu
if: needs.file-check.outputs.run == 'true'
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y qemu-user-static
- name: Build
if: github.event_name != 'workflow_dispatch' && needs.file-check.outputs.run == 'true' # Dont use retries on PRs.
run: |
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
export SKIP_EMULATION=1
.github/scripts/build-static.sh ${{ matrix.arch }}
- name: Build
if: github.event_name == 'workflow_dispatch' && needs.file-check.outputs.run == 'true'
@ -242,6 +250,7 @@ jobs:
max_attempts: 3
command: |
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
export SKIP_EMULATION=1
.github/scripts/build-static.sh ${{ matrix.arch }}
- name: Store
id: store
@ -264,6 +273,7 @@ jobs:
Checkout: ${{ steps.checkout.outcome }}
Fix Tags: ${{ steps.fix-tags.outcome }}
Mark stable: ${{ steps.channel.outcome }}
Set up QEMU: ${{ steps.qemu.outcome }}
Build: ${{ steps.build.outcome }}
Store: ${{ steps.store.outcome }}
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}

View file

@ -153,7 +153,10 @@ jobs:
- name: Setup QEMU
id: qemu
if: matrix.platform != 'linux/i386' && matrix.platform != 'linux/amd64' && needs.file-check.outputs.run == 'true'
uses: docker/setup-qemu-action@v3
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y qemu-user-static
- name: Setup Buildx
id: prepare
if: needs.file-check.outputs.run == 'true'

View file

@ -230,8 +230,11 @@ jobs:
fi
- name: Setup QEMU
id: qemu
if: matrix.platform != 'linux/amd64' && matrix.platform != 'linux/i386' && needs.file-check.outputs.run == 'true'
uses: docker/setup-qemu-action@v3
if: matrix.platform != 'linux/i386' && matrix.platform != 'linux/amd64' && needs.file-check.outputs.run == 'true'
run: |
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y qemu-user-static
- name: Fetch images
id: fetch-images
if: needs.file-check.outputs.run == 'true'