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. (#19468)
* 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:
parent
b304750344
commit
d0b8699f3f
3 changed files with 19 additions and 3 deletions
.github/workflows
10
.github/workflows/build.yml
vendored
10
.github/workflows/build.yml
vendored
|
@ -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' # Don’t 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 }}
|
||||
|
|
5
.github/workflows/docker.yml
vendored
5
.github/workflows/docker.yml
vendored
|
@ -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'
|
||||
|
|
7
.github/workflows/packaging.yml
vendored
7
.github/workflows/packaging.yml
vendored
|
@ -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'
|
||||
|
|
Loading…
Add table
Reference in a new issue