add x86 build and run unittests to backend pipeline (#1682)

* add build backend for x86_64

* remove unnecessary build steps

* install backend dependency

* build and run backend unittest

* fix cache key

* buildx is required, qemu is not.

* Add missing steps from Makefile

* fix build_command var is unused

* select more common test env

* update pipeline names and docs

* use variable for node version

* use correct artifact name

* update pipeline references

* skip unittest that needs ca-cert installed

* correct pipeline name

* use nextest pre-built binary; add term color

* fix cache permissions warning

* update documentation
This commit is contained in:
Thomas Moerkerken
2022-08-18 18:24:17 +02:00
committed by GitHub
parent 5ba0d594a2
commit 70baed88f4
5 changed files with 258 additions and 120 deletions

View File

@@ -19,10 +19,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
@@ -56,10 +53,7 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
@@ -72,10 +66,10 @@ jobs:
path: system-images/utils/utils.tar
backend:
uses: ./.github/workflows/backend-pr.yaml
uses: ./.github/workflows/backend.yaml
frontend:
uses: ./.github/workflows/frontend-pr.yaml
uses: ./.github/workflows/frontend.yaml
image:
name: Build image
@@ -113,11 +107,11 @@ jobs:
- name: Download backend artifact
uses: actions/download-artifact@v3
with:
name: backend
name: backend-aarch64
- name: 'Extract backend'
run:
tar -mxvf backend.tar
tar -mxvf backend-aarch64.tar
- name: Download frontend artifact
uses: actions/download-artifact@v3