From 21436bb1c695c931522583deade7b50cd83d712b Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 10:50:05 -0400 Subject: [PATCH 01/17] Add RPM spec file and Makefile --- Makefile | 47 +++++++++++++++++++++++++++++++++++++++++++++++ build/greggd.spec | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 86 insertions(+) create mode 100644 Makefile create mode 100644 build/greggd.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..337cb37 --- /dev/null +++ b/Makefile @@ -0,0 +1,47 @@ +VERSION != git describe --tags --abbrev=0 +RELEASE != git rev-parse --short HEAD +PREFIX := /usr +GREGGD_ARCHIVE := greggd-$(VERSION)-$(RELEASE).tar.gz + +.PHONY: build +build: + go build -v ./cmd/greggd/ + +.PHONY: test +test: + go test -v ./... + +.PHONY: install +install: greggd + mkdir -p $(DESTDIR)/$(PREFIX)/sbin/ + mkdir -p $(DESTDIR)/$(PREFIX)/share/greggd/{c,doc}/ + mkdir -p $(DESTDIR)/$(PREFIX)/lib/systemd/system/ + install -m 0755 ./greggd $(DESTDIR)/$(PREFIX)/sbin/ + install -m 0644 ./README.md $(DESTDIR)/$(PREFIX)/share/greggd/doc/ + install -m 0644 ./LICENSE.md $(DESTDIR)/$(PREFIX)/share/greggd/doc/ + install -m 0644 ./csrc/*.c $(DESTDIR)/$(PREFIX)/share/greggd/c/ + install -m 0644 ./init/greggd.service $(DESTDIR)/$(PREFIX)/lib/systemd/system/ + +.PHONY: clean +clean: + rm ./greggd + +.PHONY: uninstall +uninstall: + rm -f $(DESTDIR)/$(PREFIX)/sbin/greggd + mkdir -p $(DESTDIR)/$(PREFIX)/share/greggd/{c,doc}/ + mkdir -p $(DESTDIR)/$(PREFIX)/lib/systemd/system/greggd.service + +.PHONY: archive +archive: + git archive -o greggd-$(VERSION)-$(RELEASE).tar.gz HEAD + +.PHONY: srpm +srpm: + make archive + cp $(GREGGD_ARCHIVE) ~/rpmbuild/SOURCES + rpmbuild -bs ./build/greggd.spec + +.PHONY: rpm +rpm: + rpmbuild -bb ./build/greggd.spec diff --git a/build/greggd.spec b/build/greggd.spec new file mode 100644 index 0000000..7240518 --- /dev/null +++ b/build/greggd.spec @@ -0,0 +1,39 @@ +%global gitversion %(git describe --tags --abbrev=0) +%global gitrelease %(git rev-parse --short HEAD) +%define debug_package %{nil} +Name: greggd +Version: %{gitversion} +Release: %{gitrelease}%{?dist} +Summary: Global runtime for eBPF-enabled gathering (w/ gumption) daemon + +License: ASL 2.0 +URL: https://github.com/olcf/%{name} +Source0: https://github.com/olcf/%{name}/release/%{name}-%{gitversion}-%{gitrelease}.tar.gz + +BuildRequires: golang +BuildRequires: bcc +BuildRequires: bcc-devel +BuildRequires: git +Requires: bcc + +%description +System daemon wrapping the BPF Compiler Collection to compile and load BPF +programs into the kernel, and output data to metric reporting tools via a +unix-socket. + +%prep +%setup -q -c %{name}-%{gitversion}-%{gitrelease} + +%build +make build + +%install +make DESTDIR=%{buildroot} PREFIX=%{_prefix} install + +%files +%{_prefix}/sbin/%{name} +%{_prefix}/lib/systemd/system/%{name}.service +%{_prefix}/share/%{name}/c/ +%doc %{_prefix}/share/%{name}/doc/ + +%changelog From 17fb43472ab6b9d51b1612d8b6fef2efcc962919 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 13:44:31 -0400 Subject: [PATCH 02/17] Update RPM builds in CI --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 23 +++++++++-------------- build/Dockerfile | 5 +---- 3 files changed, 12 insertions(+), 20 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d83b276..66dc6a7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,9 +9,9 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Build - run: go build -v ./cmd/greggd/ + run: make build - name: Test - run: go test -v ./... + run: make test - name: Save artifact uses: actions/upload-artifact@v2 with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index aa83774..169c663 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,27 +11,22 @@ jobs: # No shallow clone with: fetch-depth: 0 - - name: Export release vars - id: vars - shell: bash - run: | - echo "::set-output name=version::$(git describe --tags --abbrev=0)" - echo "::set-output name=release::$(git rev-parse --short HEAD)" - name: Build - run: go build -v ./cmd/greggd/ + run: make test - name: Test - run: go test -v ./... + run: make test - name: Build RPM - env: - VERSION: ${{ steps.vars.outputs.version }} - RELEASE: ${{ steps.vars.outputs.release }} run: | - envsubst < build/nfpm-template.yaml > build/nfpm.yaml - nfpm -f build/nfpm.yaml pkg --packager rpm + make srpm + make rpm + cp ~/rpmbuild/SRPMS/*/greggd*.rpm + cp ~/rpmbuild/RPMS/*/greggd*.rpm - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: greggd*.rpm + files: | + greggd*.rpm + greggd*.tar.gz env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/build/Dockerfile b/build/Dockerfile index 6e1e6ae..08d9954 100644 --- a/build/Dockerfile +++ b/build/Dockerfile @@ -9,10 +9,7 @@ LABEL name="greggd-devel" \ version="centos8.3-297" RUN dnf install --enablerepo=powertools -y \ - @development git golang kernel-devel bcc-devel; \ + @development git golang kernel-devel bcc-devel rpm-build make; \ yum clean all -RUN \ - curl -LO https://github.com/goreleaser/nfpm/releases/download/v2.5.1/nfpm_amd64.rpm; \ - rpm -i nfpm_amd64.rpm; rm nfpm_amd64.rpm CMD ["/bin/bash"] From 7a8e03acd63f03ff96f490933af7a2f689bf27e7 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 14:17:18 -0400 Subject: [PATCH 03/17] Make rpmbuild dirs --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 337cb37..5b92802 100644 --- a/Makefile +++ b/Makefile @@ -38,10 +38,12 @@ archive: .PHONY: srpm srpm: + mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} make archive cp $(GREGGD_ARCHIVE) ~/rpmbuild/SOURCES rpmbuild -bs ./build/greggd.spec .PHONY: rpm rpm: + mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS} rpmbuild -bb ./build/greggd.spec From a9078d8908daeb899b0c3210fca39292e5d5eaeb Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 14:19:54 -0400 Subject: [PATCH 04/17] Fix issues w/ ci script --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 169c663..21057b1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,8 @@ jobs: run: | make srpm make rpm - cp ~/rpmbuild/SRPMS/*/greggd*.rpm - cp ~/rpmbuild/RPMS/*/greggd*.rpm + cp ~/rpmbuild/SRPMS/*/greggd*.rpm . + cp ~/rpmbuild/RPMS/*/greggd*.rpm . - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') From 3a8761c6b347770ebae9aa50a169d616b43177de Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 14:24:13 -0400 Subject: [PATCH 05/17] Fix path to RPM --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21057b1..a10e9a4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: run: | make srpm make rpm - cp ~/rpmbuild/SRPMS/*/greggd*.rpm . + cp ~/rpmbuild/SRPMS/greggd*.rpm . cp ~/rpmbuild/RPMS/*/greggd*.rpm . - name: Release uses: softprops/action-gh-release@v1 From e79a3aeca806cb7895af79a46c47693c883550b2 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 15:32:47 -0400 Subject: [PATCH 06/17] Try doing docker build for power --- .github/workflows/build-dev-image.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-dev-image.yml b/.github/workflows/build-dev-image.yml index 4c0cd08..44acbaf 100644 --- a/.github/workflows/build-dev-image.yml +++ b/.github/workflows/build-dev-image.yml @@ -21,4 +21,5 @@ jobs: context: build/ pull: true push: true - tags: ghcr.io/olcf/greggd/dev-image:8.3_20210513 + platforms: linux/amd64,linux/ppc64le + tags: ghcr.io/olcf/greggd/dev-image:8.3_20210706 From b1019be6ec0440e88a55d8f6aeea8f0946cc99a5 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Tue, 6 Jul 2021 16:12:01 -0400 Subject: [PATCH 07/17] Test multi-arch build --- .github/workflows/build.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 66dc6a7..0308024 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,6 +4,13 @@ on: [push] jobs: build-binary: runs-on: ubuntu-20.04 + strategy: + matrix: + include: + - arch: aarch64 + distro: ubuntu20.04 + - arch: ppc64le + distro: ubuntu20.04 container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 steps: - name: Checkout @@ -15,5 +22,5 @@ jobs: - name: Save artifact uses: actions/upload-artifact@v2 with: - name: greggd + name: greggd.${{ matrix.arch }} path: greggd From 89670a0619b260375a11a43dfaed370200ac4ba3 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:08:15 -0400 Subject: [PATCH 08/17] Try build for aarch too --- .github/workflows/build-dev-image.yml | 2 +- .github/workflows/build.yml | 19 +++++++++++++++++-- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-dev-image.yml b/.github/workflows/build-dev-image.yml index 44acbaf..57cd13d 100644 --- a/.github/workflows/build-dev-image.yml +++ b/.github/workflows/build-dev-image.yml @@ -21,5 +21,5 @@ jobs: context: build/ pull: true push: true - platforms: linux/amd64,linux/ppc64le + platforms: linux/amd64,linux/ppc64le,linux/aarch64 tags: ghcr.io/olcf/greggd/dev-image:8.3_20210706 diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0308024..bdeaa6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,14 +3,29 @@ name: build on: [push] jobs: build-binary: + runs-on: ubuntu-20.04 + container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Build + run: make build + - name: Test + run: make test + - name: Save artifact + uses: actions/upload-artifact@v2 + with: + name: greggd.amd64 + path: greggd + build-non-x86-binary: runs-on: ubuntu-20.04 strategy: matrix: include: - arch: aarch64 - distro: ubuntu20.04 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 - arch: ppc64le - distro: ubuntu20.04 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 steps: - name: Checkout From 71de0cfcc0d95bfc6d155930f58fe52a11e3b8a1 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:41:38 -0400 Subject: [PATCH 09/17] I doubt this will work b/c I'd be shocked if we have access to the docker runtime through env vars set in the job --- .github/workflows/build.yml | 25 ++++++++----------------- 1 file changed, 8 insertions(+), 17 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index bdeaa6a..9cc2ae9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,26 +3,11 @@ name: build on: [push] jobs: build-binary: - runs-on: ubuntu-20.04 - container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 - steps: - - name: Checkout - uses: actions/checkout@v2 - - name: Build - run: make build - - name: Test - run: make test - - name: Save artifact - uses: actions/upload-artifact@v2 - with: - name: greggd.amd64 - path: greggd - build-non-x86-binary: runs-on: ubuntu-20.04 strategy: matrix: include: - - arch: aarch64 + - arch: amd64 image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 - arch: ppc64le image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 @@ -31,8 +16,14 @@ jobs: - name: Checkout uses: actions/checkout@v2 - name: Build - run: make build + env: + DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} + uses: docker://${{ matrix.image }} + run: uname -a && make build - name: Test + env: + DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} + uses: docker://${{ matrix.image }} run: make test - name: Save artifact uses: actions/upload-artifact@v2 From 89a04c3c65fcd7abbc0e81aa81bd52fba554024c Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:43:02 -0400 Subject: [PATCH 10/17] iterate --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cc2ae9..51a20af 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,12 +19,14 @@ jobs: env: DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} uses: docker://${{ matrix.image }} - run: uname -a && make build + with: + args: 'uname -a && make build' - name: Test env: DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} uses: docker://${{ matrix.image }} - run: make test + with: + args: make test - name: Save artifact uses: actions/upload-artifact@v2 with: From 4ffda25a49430ba86b4cccafaf770126b58543eb Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:47:33 -0400 Subject: [PATCH 11/17] Use docker ref in image name --- .github/workflows/build.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51a20af..adea2ad 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,9 +8,9 @@ jobs: matrix: include: - arch: amd64 - image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: docker://ghcr.io/olcf/greggd/dev-image:8.3_20210706 - arch: ppc64le - image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: docker://ghcr.io/olcf/greggd/dev-image:8.3_20210706 container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 steps: - name: Checkout @@ -18,7 +18,7 @@ jobs: - name: Build env: DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} - uses: docker://${{ matrix.image }} + uses: ${{ matrix.image }} with: args: 'uname -a && make build' - name: Test From 245d3c4bc2738832076dbfe4198d0a8a32457a97 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:54:36 -0400 Subject: [PATCH 12/17] Try using docker run w/ platform set --- .github/workflows/build.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index adea2ad..268f8c7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,25 +8,29 @@ jobs: matrix: include: - arch: amd64 - image: docker://ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 - arch: ppc64le - image: docker://ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 steps: + - run: | + docker run --rm --privileged \ + multiarch/qemu-user-static:register --reset - name: Checkout uses: actions/checkout@v2 - name: Build - env: - DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} - uses: ${{ matrix.image }} - with: - args: 'uname -a && make build' + run: | + docker run --rm --platform ${{ matrix.arch }} \ + --workdir "${GITHUB_WORKSPACE}" \ + -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" \ + ${{ matrix.image }} \ + "uname -a && make build" - name: Test - env: - DOCKER_DEFAULT_PLATFORM: ${{ matrix.arch }} - uses: docker://${{ matrix.image }} - with: - args: make test + run: | + docker run --rm --platform ${{ matrix.arch }} \ + --workdir "${GITHUB_WORKSPACE}" \ + -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" \ + ${{ matrix.image }} "make test" - name: Save artifact uses: actions/upload-artifact@v2 with: From bf3f8d1e0da3bb35f6d2b2f6f96e3867ae6d8ebe Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:55:56 -0400 Subject: [PATCH 13/17] Remove container spec --- .github/workflows/build.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 268f8c7..d672a2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,7 +11,6 @@ jobs: image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 - arch: ppc64le image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 - container: ghcr.io/olcf/greggd/dev-image:8.3_20210513 steps: - run: | docker run --rm --privileged \ From 7dd10215d5a9df8a88b415f6e2434b95f5980b5b Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Wed, 7 Jul 2021 08:57:44 -0400 Subject: [PATCH 14/17] Use shell to run commands --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d672a2a..8d06003 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -23,13 +23,14 @@ jobs: --workdir "${GITHUB_WORKSPACE}" \ -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" \ ${{ matrix.image }} \ - "uname -a && make build" + /bin/bash -c "uname -a && make build" - name: Test run: | docker run --rm --platform ${{ matrix.arch }} \ --workdir "${GITHUB_WORKSPACE}" \ -v "${GITHUB_WORKSPACE}:${GITHUB_WORKSPACE}" \ - ${{ matrix.image }} "make test" + ${{ matrix.image }} \ + /bin/bash -c "make test" - name: Save artifact uses: actions/upload-artifact@v2 with: From a25c5107542db4cd09c0e4d6fdb3b51ed1cc1a94 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Thu, 8 Jul 2021 15:35:54 -0400 Subject: [PATCH 15/17] Use separate tags for images --- .github/workflows/build-dev-image.yml | 9 +++++++-- .github/workflows/build.yml | 4 ++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-dev-image.yml b/.github/workflows/build-dev-image.yml index 57cd13d..34ffc39 100644 --- a/.github/workflows/build-dev-image.yml +++ b/.github/workflows/build-dev-image.yml @@ -4,6 +4,11 @@ on: [workflow_dispatch] jobs: build-dev-image: runs-on: ubuntu-20.04 + strategy: + matrix: + include: + - arch: amd64 + - arch: ppc64le steps: - name: Checkout uses: actions/checkout@v2 @@ -21,5 +26,5 @@ jobs: context: build/ pull: true push: true - platforms: linux/amd64,linux/ppc64le,linux/aarch64 - tags: ghcr.io/olcf/greggd/dev-image:8.3_20210706 + platforms: linux/${{ matrix.arch }} + tags: ghcr.io/olcf/greggd/dev-image:8.3_20210706-${{ matrix.arch }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8d06003..90ae929 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,9 +8,9 @@ jobs: matrix: include: - arch: amd64 - image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706-amd64 - arch: ppc64le - image: ghcr.io/olcf/greggd/dev-image:8.3_20210706 + image: ghcr.io/olcf/greggd/dev-image:8.3_20210706-ppc64le steps: - run: | docker run --rm --privileged \ From 3c2e7c2ef3f25edad705917505b56186b8794e00 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Thu, 15 Jul 2021 11:14:07 -0400 Subject: [PATCH 16/17] Use qemu-user-static image w/ binaries --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 90ae929..a1ec56d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,7 +14,7 @@ jobs: steps: - run: | docker run --rm --privileged \ - multiarch/qemu-user-static:register --reset + multiarch/qemu-user-static:5.2.0-2 --reset - name: Checkout uses: actions/checkout@v2 - name: Build From 9a91fb87ffcc14eebe3aa474ecc1841f5b634b64 Mon Sep 17 00:00:00 2001 From: Joseph Voss Date: Thu, 15 Jul 2021 11:16:57 -0400 Subject: [PATCH 17/17] Install qemu packages --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a1ec56d..b49a3ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: - arch: ppc64le image: ghcr.io/olcf/greggd/dev-image:8.3_20210706-ppc64le steps: + - run: sudo apt-get install qemu binfmt-support qemu-user-static - run: | docker run --rm --privileged \ multiarch/qemu-user-static:5.2.0-2 --reset