mirror of
https://github.com/netdata/netdata.git
synced 2025-05-01 07:59:52 +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:
|
with:
|
||||||
path: artifacts/cache
|
path: artifacts/cache
|
||||||
key: ${{ steps.cache-key.outputs.key }}
|
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
|
- name: Build
|
||||||
if: github.event_name != 'workflow_dispatch' && needs.file-check.outputs.run == 'true' # Don’t use retries on PRs.
|
if: github.event_name != 'workflow_dispatch' && needs.file-check.outputs.run == 'true' # Don’t use retries on PRs.
|
||||||
run: |
|
run: |
|
||||||
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
|
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
|
||||||
|
export SKIP_EMULATION=1
|
||||||
.github/scripts/build-static.sh ${{ matrix.arch }}
|
.github/scripts/build-static.sh ${{ matrix.arch }}
|
||||||
- name: Build
|
- name: Build
|
||||||
if: github.event_name == 'workflow_dispatch' && needs.file-check.outputs.run == 'true'
|
if: github.event_name == 'workflow_dispatch' && needs.file-check.outputs.run == 'true'
|
||||||
|
@ -242,6 +250,7 @@ jobs:
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: |
|
command: |
|
||||||
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
|
export EXTRA_INSTALL_FLAGS=${{ needs.file-check.outputs.skip-go }}
|
||||||
|
export SKIP_EMULATION=1
|
||||||
.github/scripts/build-static.sh ${{ matrix.arch }}
|
.github/scripts/build-static.sh ${{ matrix.arch }}
|
||||||
- name: Store
|
- name: Store
|
||||||
id: store
|
id: store
|
||||||
|
@ -264,6 +273,7 @@ jobs:
|
||||||
Checkout: ${{ steps.checkout.outcome }}
|
Checkout: ${{ steps.checkout.outcome }}
|
||||||
Fix Tags: ${{ steps.fix-tags.outcome }}
|
Fix Tags: ${{ steps.fix-tags.outcome }}
|
||||||
Mark stable: ${{ steps.channel.outcome }}
|
Mark stable: ${{ steps.channel.outcome }}
|
||||||
|
Set up QEMU: ${{ steps.qemu.outcome }}
|
||||||
Build: ${{ steps.build.outcome }}
|
Build: ${{ steps.build.outcome }}
|
||||||
Store: ${{ steps.store.outcome }}
|
Store: ${{ steps.store.outcome }}
|
||||||
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK_URL }}
|
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
|
- name: Setup QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
if: matrix.platform != 'linux/i386' && matrix.platform != 'linux/amd64' && needs.file-check.outputs.run == 'true'
|
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
|
- name: Setup Buildx
|
||||||
id: prepare
|
id: prepare
|
||||||
if: needs.file-check.outputs.run == 'true'
|
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
|
fi
|
||||||
- name: Setup QEMU
|
- name: Setup QEMU
|
||||||
id: qemu
|
id: qemu
|
||||||
if: matrix.platform != 'linux/amd64' && matrix.platform != 'linux/i386' && needs.file-check.outputs.run == 'true'
|
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: Fetch images
|
- name: Fetch images
|
||||||
id: fetch-images
|
id: fetch-images
|
||||||
if: needs.file-check.outputs.run == 'true'
|
if: needs.file-check.outputs.run == 'true'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue